cordova - Impossible to run ionic build android -


i have couple of days problem, upgrade new version ionic , present following problem:

build failed  total time: 11.556 secs  /users/lixsys/app_view/platforms/android/cordova/node_modules/q/q.js:126                 throw e;                       ^ error code 1 command: /users/lixsys/app_view/platforms/android/gradlew args: cdvbuilddebug,-b,/users/lixsys/app_view/platforms/android/build.gradle,-dorg.gradle.daemon=true error building 1 of platforms: error: /users/lixsys/app_view/platforms/android/cordova/build: command failed exit code 1 may not have required environment or os build project error: /users/lixsys/app_view/platforms/android/cordova/build: command failed exit code 1 @ childprocess.whendone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23) @ childprocess.emit (events.js:110:17) @ maybeclose (child_process.js:1008:16) @ process.childprocess._handle.onexit (child_process.js:1080:5) 

previously in cases had earned problem solve following ways:

export android_home=/users/abdi/adt/sdk export path=${path}:$android_home/tools:$android_home/platform-tools 

and

brew install ant 

but nothing works, upgrade jdk java_home , android_home , check correct. crazy have problem can not solve encounter multiple ways fix no work me. try removing platform , add again nothing.

have try upgrade android sdk latest version (api 22)?

i had same problems before can't run build command, works when upgrade sdk via android sdk manager.

or try reinstall of prerequisites following instruction in site : https://blog.nraboy.com/2014/09/install-android-cordova-ionic-framework-ubuntu/

regards


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -