gpt4 book ai didi

java - 无法构建来自 Google 的官方示例

转载 作者:行者123 更新时间:2023-11-29 19:13:54 25 4
gpt4 key购买 nike

我克隆存储库: https://github.com/googlevr/gvr-android-sdk/

我尝试在 Android Studio 中运行,没有做任何更改,但出现错误:

Error:(39, 13) Failed to resolve: com.google.vr:sdk-base:1.60.
<a href="openFile:C:/Users/Vesbat/Documents/KODE/gvr-android-sdk/samples/sdk-controllerclient/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog

Error:(40, 13) Failed to resolve: com.google.vr:sdk-controller:1.60.1
<a href="openFile:C:/Users/Vesbat/Documents/KODE/gvr-android-sdk/samples/sdk-controllerclient/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog

Error:(39, 13) Failed to resolve: com.google.vr:sdk-panowidget:1.60.1
<a href="openFile:C:/Users/Vesbat/Documents/KODE/gvr-android-sdk/samples/sdk-simplepanowidget/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

Error:(39, 13) Failed to resolve: com.google.vr:sdk-videowidget:1.60.1
<a href="openFile:C:/Users/Vesbat/Documents/KODE/gvr-android-sdk/samples/sdk-simplevideowidget/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

Error:(40, 13) Failed to resolve: com.google.vr:sdk-base:1.60.1
<a href="openFile:C:/Users/Vesbat/Documents/KODE/gvr-android-sdk/samples/sdk-treasurehunt/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

Error:(39, 13) Failed to resolve: com.google.vr:sdk-audio:1.60.1
<a href="openFile:C:/Users/Vesbat/Documents/KODE/gvr-android-sdk/samples/sdk-treasurehunt/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

Error:(43, 13) Failed to resolve: com.google.vr:sdk-common:1.60.1
<a href="openFile:C:/Users/Vesbat/Documents/KODE/gvr-android-sdk/samples/sdk-videoplayer/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

Error:(42, 13) Failed to resolve: com.google.vr:sdk-base:1.60.1
<a href="openFile:C:/Users/Vesbat/Documents/KODE/gvr-android-sdk/samples/sdk-videoplayer/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

最佳答案

在每个文件build.gradle中替换

Dependencies {
Compile 'com.google.vr: sdk-audio: 1. +'
Compile 'com.google.vr: sdk-base: 1. +'
}

编译后会崩溃,更新后错误消失。

关于java - 无法构建来自 Google 的官方示例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44230509/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com