Errors executing Cordova commands


#1

Started your app.

=> App running at: http://localhost:3000/
=> Errors executing Cordova commands:

While running Cordova app for platform Android with options --device:
Error: Command failed:
/home/aamproduct/Bureau/androidapp/.meteor/local/cordova-build/platforms/android/cordova/run
–device
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:CordovaLib:processDebugResources’.

A problem occurred starting process ‘command
’/home/aamproduct/Téléchargements/android-sdk-linux/build-tools/23.0.3/aapt’’

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info
    or --debug option to get more log output.
    Error code 1 for command:
    /home/aamproduct/Bureau/androidapp/.meteor/local/cordova-build/platforms/android/gradlew
    with args:
    cdvBuildDebug,-b,/home/aamproduct/Bureau/androidapp/.meteor/local/cordova-build/platforms/android/build.gradle,-PcdvBuildArch=arm,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
    undefined
    at ChildProcess.exitCallback (/tools/utils/processes.js:151:23)
    at ChildProcess.emit (events.js:98:17)
    at Process.ChildProcess._handle.onexit (child_process.js:820:12)

/home/aamproduct/.meteor/packages/templating/.1.1.9.18yb8nj++os+web.browser+web.cordova/plugin.compileTemplatesBatch.os/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:116
throw error;
^
ExitWithCode:1


#2

Please delete folder .meteor/local/cordova-build and run again.

This issue happen sometimes when you run on window.
Thanks.


#3

Hi tuanhai12h I delete the folder and now I have this error thank you for wanting to help me is important. I want to run on my phone android 5.1 on Ubuntu 15.10

=> Started proxy.
=> Started MongoDB.

/home/aamproduct/.meteor/packages/less/.2.6.0.1p4eefj++os+web.browser+web.cordova/plugin.compileLessBatch.os/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:116
throw error;
^
Error: EPERM, symlink ‘/home/aamproduct/.meteor/packages/meteor-tool/.1.3.2_4.10vjklo++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules’


#4

please update meteor package by “meteor update” to get latest version and fix some issue on meteor core.

If you can’t continue worked, please add “sudo meteor” before run.
I think it okay.


#5

please mister tuanhai12h, I have the same error when I want to execute the command
meteor run android-device or a simple command meteor

/home/aamproduct/.meteor/packages/meteor-tool/.1.3.2_4.10vjklo++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:116
throw error;
^
Error: spawn EACCES
at errnoException (child_process.js:1011:11)
at Process.ChildProcess._handle.onexit (child_process.js:802:34)


#6

Can you add “sudo” before command to run again? @aamproduct


#7

can you guys help me with this?
Somehow it is related to gradle so what should i do?

`Executing “after_prepare” hook for all plugins.
% Executing “before_compile” hook for all plugins.
ANDROID_HOME=/Users/zehijeanjacquesthibaut/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home
Unzipping /Users/zehijeanjacquesthibaut/.gradle/wrapper/dists/gradle-2.2.1-all/2m8005s69iu8v0oiejfej094b/gradle-2.2.1-all.zip to /Users/zehijeanjacquesthibaut/.gradle/wrapper/dists/gradle-2.2.1-all/2m8005s69iu8v0oiejfej094b
Exception in thread “main” java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:78)
at org.gradle.wrapper.Install.createDist(Install.java:47)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:219)
at java.util.zip.ZipFile.(ZipFile.java:149)
at java.util.zip.ZipFile.(ZipFile.java:163)
at org.gradle.wrapper.Install.unzip(Install.java:160)
at org.gradle.wrapper.Install.access$400(Install.java:29)
at org.gradle.wrapper.Install$1.call(Install.java:70)
at org.gradle.wrapper.Install$1.call(Install.java:47)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
… 3 more
% ERROR building one of the platforms: Error code 1 for command: /Users/zehijeanjacquesthibaut/Desktop/TRIZ_DIGITAL/WEBAPPS_MOBILE_APPS/zfoodapp/.meteor/local/cordova-build/platforms/android/gradlew with args: cdvBuildRelease,-b,/Users/zehijeanjacquesthibaut/Desktop/TRIZ_DIGITAL/WEBAPPS_MOBILE_APPS/zfoodapp/.meteor/local/cordova-build/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
You may not have the required environment or OS to build this project
=> Errors executing Cordova commands:

While building Cordova app for platform Android:
Error code 1 for command: /Users/zehijeanjacquesthibaut/Desktop/TRIZ_DIGITAL/WEBAPPS_MOBILE_APPS/zfoodapp/.meteor/local/cordova-build/platforms/android/gradlew with
args:
cdvBuildRelease,-b,/Users/zehijeanjacquesthibaut/Desktop/TRIZ_DIGITAL/WEBAPPS_MOBILE_APPS/zfoodapp/.meteor/local/cordova-build/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true`


#8

@zjjt, please update the latest Android Studio and the latest Java support.

I think your platform is so old.
Thanks


#9

i did thank you…i manually installed gradle