我使用phonegap构建应用程序。
首先,我已将笔记本电脑连接到互联网连接,一切正常。
在同一个项目中,我尝试过没有网络连接,正在显示
Running command: "C:\Program Files\nodejs\node.exe" D:\Smargav\Projects\Done\pla
yer\hooks\after_prepare\010_add_platform_class.js D:\Smargav\Projects\Done\playe
r
add to body class: platform-android
Running command: cmd "/s /c "D:\Smargav\Projects\Done\player\platforms\android\c
ordova\build.bat""
ANDROID_HOME=D:\Smargav\DownladImg\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_60
Running: D:\Smargav\Projects\Done\player\platforms\android\gradlew cdvBuildDebug
-b D:\Smargav\Projects\Done\player\platforms\android\build.gradle -Dorg.gradle.
daemon=true
FAILURE:
Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
>
Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:1.0.0+.
Required by:
:android:unspecified
>
Failed to list versions for com.android.tools.build:gradle.
>
Unable to load Maven meta-data from https://repo1.maven.org/maven2/com/android/t
ools/build/gradle/maven-metadata.xml.
我收到了上述错误。
这有什么错误?
我已经检查了谷歌,我得到了不需要互联网连接的手机版本。
然后我该如何解决这个问题?