构建和运行phonegap应用程序需要网络连接吗?

时间:2015-12-22 06:01:59

标签: android cordova gradle android-gradle phonegap-build

我使用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.

我收到了上述错误。

这有什么错误?

我已经检查了谷歌,我得到了不需要互联网连接的手机版本。

然后我该如何解决这个问题?

0 个答案:

没有答案