2016-05-14 50 views
0

我已经安装了Java JRE,但我一直在获取。使用Windows 10时许发展Android上的离子错误模拟

运行离子运行Android或离子仿真机器人后,我得到这个错误:

Exception in thread "main" java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file 
    at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.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:215) 
    at java.util.zip.ZipFile.<init>(ZipFile.java:145) 
    at java.util.zip.ZipFile.<init>(ZipFile.java:159) 
    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(ExclusiveFileAccessManager.java:65) 
    ... 3 more 

我还设置JRE_HOME环境变量

+1

http://stackoverflow.com/questions/325202/java-util-zip-zipexception-error-in-opening-zip-file可能是你的兴趣 – nullpointer

回答

1

也许这是关系到东西丢失或损坏。 你可以找到一个similar question here,希望它有帮助。

First of all you have to install

  1. node.js

  2. apache ANT

  3. JDK & JRE

  4. Android SDK & Eclipse

After installation, you have to set software paths into environmental- variable. Then fire your npm install -g cordova. Without this PhoneGap will not be created.

+0

由于它的工作 –