. . . while the stderr of the build looks like this . . .
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':CordovaLib:processReleaseResources'.
> A problem occurred starting process 'command '/home/you/.android/android-sdk-linux/build-tools/23.0.1/aapt''
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
=> Errors executing Cordova commands:
While building Cordova app for platform Android:
Error code 1 for command:
/home/you/projects/mmks/.meteor/local/cordova-build/platforms/android/gradlew
with args:
cdvBuildRelease,-b,/home/you/projects/mmks/.meteor/local/cordova-build/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
My questions :
Is this a known bug?
Is the error emitted by Meteor or Gradle or Cordova or android-sdk or something else?
How do I set the option --info or --debug so that it gets through to the execution arguments of the tool that emitted it?
Hello thanks for ur answer, i tried to download the script and makes it executables but nothing start. So im stuck with same problem :
meteor build android --server localhost
WARNING: The output directory is under your source tree.
Your generated files may get interpreted as source code!
Consider building into a different directory instead
meteor build ../output
ANDROID_HOME=/home/yoann/Android/Sdk \
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
Building Cordova app for Android -
:preBuild
:preReleaseBuild
:checkReleaseManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
UP-TO-DATE Cordova app for Android -
:CordovaLib:compileLint
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseProguardFiles UP-TO-DATE
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseRenderscript UP-TO-DATE
:CordovaLib:generateReleaseResValues UP-TO-DATE
:CordovaLib:generateReleaseResources UP-TO-DATE
:CordovaLib:packageReleaseResources UP-TO-DATE
:CordovaLib:compileReleaseAidl UP-TO-DATE
:CordovaLib:generateReleaseBuildConfig UP-TO-DATE
:CordovaLib:generateReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseAssets UP-TO-DATE
:CordovaLib:processReleaseManifest UP-TO-DATE
:CordovaLib:processReleaseResources UP-TO-DATE
:CordovaLib:generateReleaseSources UP-TO-DATE
:CordovaLib:compileReleaseJavaWithJavac UP-TO-DATE
:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:CordovaLib:mergeReleaseJniLibFolders UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
:CordovaLib:bundleRelease UP-TO-DATE
:prepareAndroidCordovaLibUnspecifiedReleaseLibrary UP-TO-DATE
:prepareReleaseDependencies
:compileReleaseAidl UP-TO-DATE
:compileReleaseRenderscript UP-TO-DATE
:generateReleaseBuildConfig UP-TO-DATE
:generateReleaseAssets UP-TO-DATE
:mergeReleaseAssets
:generateReleaseResValues UP-TO-DATE
:generateReleaseResources UP-TO-DATE
:mergeReleaseResources UP-TO-DATE
:processReleaseManifest UP-TO-DATE
FAILEDding Cordova app for Android -
FAILURE: Build failed with an exception.
Building Cordova app for Android \
* What went wrong:
Execution failed for task ':processReleaseResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/yoann/Android/Sdk/build-tools/24.0.3/aapt'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1.879 secs
=> Errors executing Cordova commands:
While building Cordova app for platform Android:
Error code 1 for command: /home/yoann/webdev/legoutdessaisons/.meteor/local/cordova-build/platforms/android/gradlew with
args:
cdvBuildRelease,-b,/home/yoann/webdev/legoutdessaisons/.meteor/local/cordova-build/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
The problem is that i don’t even know what to look for…i’m stuck with this problem seems it’s related with gradle but im not sure. My app is working well when i launch it by just typing “meteor”, i was also able to deploy it on a server with mup, but now it’s impossible to make an apk, there are not much tutos about this part of the process, so i have still this for now
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processReleaseResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/yoann/Android/Sdk/build-tools/24.0.3/aapt'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.457 secs
=> Errors executing Cordova commands:
While building Cordova app for platform Android:
Error code 1 for command:
/home/yoann/webdev/legoutdessaisons/.meteor/local/cordova-build/platforms/android/gradlew
with args:
cdvBuildRelease,-b,/home/yoann/webdev/legoutdessaisons/.meteor/local/cordova-build/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
From what I can see you have not yet tried changing your version numbers . In this line I see you are still using ‘24.0.3’, as you were two days ago ::
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/yoann/Android/Sdk/build-tools/24.0.3/aapt'' finished with non-zero exit value 1
I do not use 24.0.3 in my script. What makes you think it will work for you?
Part of the issue may be that I am not following Meteor’s ( skimpy ! ) explanations. They say to install the whole SDK, but I wanted a pure command line solution.
If you are not comfortable with Linux command line and bash in particular, I have pretty much reached the limit of being able to help you. On the other hand, if you are willing to pick through my function : PrepareAndroidSDK() I am sure you will find all you need.
BUILD SUCCESSFUL in 21s
1 actionable task: 1 executed
Subproject Path: CordovaLib Android
Subproject Path: app
Starting a Gradle Daemon, 3 incompatible Daemons could not be reused, use --status for details
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
While building Cordova app for platform Android:
Error: Command failed with exit code 1: D:\Projects\meteor\logic.meteor\local\cordova-build\platforms\android\gradlew
:app:bundleRelease -b D:\Projects\meteor\logic.meteor\local\cordova-build\platforms\android\build.gradle
at makeError
(C:\Users\User\AppData\Local.meteor\packages\meteor-tool\2.12.0\mt-os.windows.x86_64\dev_bundle\lib\node_modules\cordova-android\node_modules\execa\lib\error.js:60:11)
at handlePromise
(C:\Users\User\AppData\Local.meteor\packages\meteor-tool\2.12.0\mt-os.windows.x86_64\dev_bundle\lib\node_modules\cordova-android\node_modules\execa\index.js:118:26)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5)
=> awaited here:
at Function.Promise.await
(C:\Users\User\AppData\Local.meteor\packages\meteor-tool\2.12.0\mt-os.windows.x86_64\dev_bundle\lib\node_modules\meteor-promise\promise_server.js:56:12)
at C:\tools\cordova\project.js:325:7
at
C:\Users\User\AppData\Local.meteor\packages\meteor-tool\2.12.0\mt-os.windows.x86_64\dev_bundle\lib\node_modules\meteor-promise\fiber_pool.js:43:40
=> awaited here:
at Function.Promise.await
(C:\Users\User\AppData\Local.meteor\packages\meteor-tool\2.12.0\mt-os.windows.x86_64\dev_bundle\lib\node_modules\meteor-promise\promise_server.js:56:12)
at CordovaProject.runCommands (C:\tools\cordova\project.js:896:22)
at CordovaProject.buildForPlatform (C:\tools\cordova\project.js:323:10)
at C:\tools\cli\commands.js:1243:30
at Object.enterJob (C:\tools\utils\buildmessage.js:388:12)
at C:\tools\cli\commands.js:1226:22
at Object.capture (C:\tools\utils\buildmessage.js:283:5)
at Object.main.captureAndExit (C:\tools\cli\main.js:281:29)
at buildCommand (C:\tools\cli\commands.js:1201:10)
at C:\tools\cli\commands.js:988:25
at Function.run
(C:\Users\User\AppData\Local.meteor\packages\meteor-tool\2.12.0\mt-os.windows.x86_64\tools\tool-env\tools\tool-env\profile.ts:289:14)
at C:\tools\cli\commands.js:986:18
at
C:\Users\User\AppData\Local.meteor\packages\meteor-tool\2.12.0\mt-os.windows.x86_64\dev_bundle\lib\node_modules\meteor-promise\fiber_pool.js:43:40
PS D:\Projects\meteor\logic> meteor add cordova-plugin-geolocation@2.4.3
=> Errors while parsing arguments:
While adding package cordova-plugin-geolocation@2.4.3:
error: no such package
PS D:\Projects\meteor\logic> meteor add cordova-plugin-geolocation@2.4.3
=> Errors while parsing arguments:
While adding package cordova-plugin-geolocation@2.4.3:
error: no such package