差不多大约4个星期后,我正在为编译我的离子应用程序安装android平台而遇到一个奇怪的错误。 如果它是一个新鲜的vcreated应用程序或我目前正在处理的项目应用程序并不重要。
成功添加android平台后,build命令总是崩溃,留下以下堆栈:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:33)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:130)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.gradle.internal.SystemProperties
at org.gradle.logging.internal.AbstractStyledTextOutput.println(AbstractStyledTextOutput.java:68)
at org.gradle.BuildExceptionReporter.renderSingleBuildException(BuildExceptionReporter.java:102)
at org.gradle.BuildExceptionReporter.execute(BuildExceptionReporter.java:71)
at org.gradle.BuildExceptionReporter.execute(BuildExceptionReporter.java:41)
at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:47)
... 14 more
E:\Files\App Projekte\Siedler von Catan App\src\catan-mobile\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c ""E:\Files\App Projekte\Siedler von Catan App\src\catan-mobile\platforms\android\gradlew" cdvBuildDebug -b "E:\Files\App Projekte\Siedl
er von Catan App\src\catan-mobile\platforms\android\build.gradle" -Dorg.gradle.daemon=true"
ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 1
at ChildProcess.whenDone (C:\Users\nerondo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:139:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)

我真的无法弄清楚框架的哪个部分在这里造成了麻烦......我重新安装了所有必要的模块。
我的操作系统是Windows 7 64x。