My job of creating an ion assembly is not working properly.
First, I execute the following commands:
ionic start secondApp blank cd secondApp ionic platform add android ionic build android
When the ant build is preparing for the project resource package, the task throws this error:
-package-resources: [aapt] Creating full resource package... BUILD FAILED E:\usr\bin\android-sdk\tools\ant\build.xml:932: The following error occurred while executing this line: E:\usr\bin\android-sdk\tools\ant\build.xml:950: null returned: -1073741819 Total time: 32 seconds E:\dev\projects\ionic\secondApp\platforms\android\cordova\node_modules\q\q.js:126 throw e; ^ Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,E:\dev\projects\ionic\secondApp\platforms\android\build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen Error: E:\dev\projects\ionic\secondApp\platforms\android\cordova\build.bat: Command failed with exit code 8 at ChildProcess.whenDone (C:\Users\Ricardo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23) at ChildProcess.EventEmitter.emit (events.js:98:17) at maybeClose (child_process.js:735:16) at Process.ChildProcess._handle.onexit (child_process.js:802:5)
I'm already trying to clean my project and remove .cordova and .ionic, but the problem still persists.
What's wrong?
ANT_HOME, ANDROID_HOME, JAVA_HOME is OK
source share