android 模拟上的离子错误

Ionic error on android emulate

我已经安装了 java JRE,但我还在继续安装。我正在使用 windows 10 进行开发

在 运行ning ionic 运行 android 或 ionic emulate 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.access0(Install.java:29)
    at org.gradle.wrapper.Install.call(Install.java:70)
    at org.gradle.wrapper.Install.call(Install.java:47)
    at     org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
    ... 3 more

我在环境变量里也设置了JRE_HOME

可能与丢失或损坏的东西有关。 你可以找一个,希望对你有帮助。

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.