Errors executing Cordova commands

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

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

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

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’

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.

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)

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

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`

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

I think your platform is so old.
Thanks

i did thank you…i manually installed gradle

Can you help with this?

WARNING: Attempting to install plugin cordova-plugin-geolocation@2.1.0, but it should have
a minimum version of 2.4.3 to ensure compatibility with the current platform
versions. Installing the minimum version for convenience, but you should adjust
your dependencies.
WARNING: Attempting to install plugin cordova-plugin-statusbar@2.2.1, but it should have a
minimum version of 2.3.0 to ensure compatibility with the current platform
versions. Installing the minimum version for convenience, but you should adjust
your dependencies.
WARNING: Attempting to install plugin cordova-plugin-splashscreen@4.0.1, but it should have
a minimum version of 4.1.0 to ensure compatibility with the current platform
versions. Installing the minimum version for convenience, but you should adjust
your dependencies.
%% Plugin doesn’t support this project’s cordova-android version. cordova-android: 7.1.4, failed version requirement:
<6.3.0
%% Skipping ‘cordova-plugin-compat’ for android

WARNING: You are testing your app on a remote device. For the mobile app to be able to
connect to the local server, make sure your device is on the same network, and
that the network configuration allows clients to talk to each other (no client
isolation).
=> Errors executing Cordova commands:

While running Cordova app for platform Android with options --buildConfig,C:\Users\DMI
Intern\eportfolio.meteor\local\cordova-build\build.json,–device:
Error: Command failed: C:\Users\DMI
Intern\eportfolio.meteor\local\cordova-build\platforms\android\cordova\run
–buildConfig C:\Users\DMI Intern\eportfolio.meteor\local\cordova-build\build.json
–device --buildConfig C:\Users\DMI
Intern\eportfolio.meteor\local\cordova-build\build.json --device
‘C:\Users\DMI’ is not recognized as an internal or external command,
operable program or batch file.
at ChildProcess.exitCallback (C:\tools\utils\processes.js:151:23)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)

C:\Users\DMI Intern\AppData\Local.meteor\packages\coffeescript\1.0.17\plugin.compileCoffeescript.os\npm\node_modules\meteor\promise\node_modules\meteor-promise\promise_server.js:116
throw error;
^
ExitWithCode:1