Android build failed Error code 1-Command failed with exit code 8


#1

Hello,

When I try to build or run my project on android. I have this errors report

‘Error code 1 for command: ant with args: debug,-f,/Users/XXXX/Documents/works/XXXX/test/testAPP/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
ERROR building one of the platforms: Error: /Users/XXXX/Documents/works/XXXX/test/testAPP/platforms/android/cordova/build: Command failed with exit code 8
You may not have the required environment or OS to build this project
Error: /Users/XXXX/Documents/works/XXXX/test/testAPP/platforms/android/cordova/build: Command failed with exit code 8
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)’

I tried to re install android sdk, update ionic and cordova. I have the same issue with a new project and for all my old projects.

It’s work fine with iOS.

Do you have any ideas ?

Many thanks.


#2

Ok I put my project on git and I pull it in a new folder and…it’s work.