当前位置: 动力学知识库 > 问答 > 编程问答 >

Cordova build android on windows

问题描述:

When I run cordova build android, I have this error

Adding android project...

Creating Cordova project for the Android platform:

Path: platforms\android

Package: io.cordova.hellocordova

Name: HelloCordova

Activity: MainActivity

Android target: android-23

Android project created with [email protected]

Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the pro

ject

Fetching plugin "[email protected]" via npm

Installing "cordova-plugin-whitelist" for android

This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do not need this

plugin since the whitelist will be built in.

C:\wamp\www\testmob>cordova build android

ANDROID_HOME=C:\Program Files\Android\android-sdk

JAVA_HOME=C:\Program Files\java\jdk1.7.0_03

Unzipping C:\Documents and Settings\7997\.gradle\wrapper\dists\gradle-2.13-all\7

hsc6vr6mi3i6i5m7q9hj4ci1q\gradle-2.13-all.zip to C:\Documents and Settings\7997\

.gradle\wrapper\dists\gradle-2.13-all\7hsc6vr6mi3i6i5m7q9hj4ci1q

Exception in thread "main" java.lang.RuntimeException: java.util.zip.ZipExceptio

n: error in opening zip file

at org.gradle.wrapper.ExclusiveFileAccessM`enter code here`anager.access(ExclusiveFileAcc

essManager.java:78)

at org.gradle.wrapper.Install.createDist(Install.java:47)

at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)

at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)

Caused by: java.util.zip.ZipException: error in opening zip file

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.<init>(ZipFile.java:214)

at java.util.zip.ZipFile.<init>(ZipFile.java:144)

at java.util.zip.ZipFile.<init>(ZipFile.java:158)

at org.gradle.wrapper.Install.unzip(Install.java:160)

at org.gradle.wrapper.Install.access$400(Install.java:29)

at org.gradle.wrapper.Install$1.call(Install.java:70)

at org.gradle.wrapper.Install$1.call(Install.java:47)

at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAcc

essManager.java:65)`enter code here`

... 3 more

Built the following apk(s):

分享给朋友:
您可能感兴趣的文章:
随机阅读: