Android ion collector not working with resource bundle

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

+5
source share
2 answers

I came across the same error. For more information, see the following:

https://code.google.com/p/android/issues/detail?id=77629

Switching to the Android SDK Build-Tools 20 should allow you to complete the build. This solved the problem for me.

+4
source

I just tested it with an example ion project, and it works with the SDK Build Tools 21.0.2.

A failed attack has been fixed for Windows / x64 with this version.

So an update may be for you too.

+2
source

Source: https://habr.com/ru/post/1204994/


All Articles