You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sébastien Loisel (JIRA)" <ji...@apache.org> on 2016/02/23 20:02:18 UTC

[jira] [Commented] (CB-10678) Build fails cryptically on Mac

    [ https://issues.apache.org/jira/browse/CB-10678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15159433#comment-15159433 ] 

Sébastien Loisel commented on CB-10678:
---------------------------------------

Forgot the build log:

Sebastiens-MBP:kanji2 sebastienloisel$ cordova build android
ANDROID_HOME=/Users/sebastienloisel/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default language level for compileSdkVersion 'android-23' is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
Default language level for compileSdkVersion 'android-23' is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
Default language level for compileSdkVersion 'android-23' is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
Default language level for compileSdkVersion 'android-23' is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
Default language level for compileSdkVersion 'android-23' is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
Default language level for compileSdkVersion 'android-23' is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
Default language level for compileSdkVersion 'android-23' is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
Default language level for compileSdkVersion 'android-23' is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
Default language level for compileSdkVersion 'android-23' is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
Default language level for compileSdkVersion 'android-23' is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
:CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
:CordovaLib:bundleDebug UP-TO-DATE
:prepareAndroidCordovaLibUnspecifiedDebugLibrary UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources UP-TO-DATE
:processDebugManifest UP-TO-DATE
:processDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/sebastienloisel/Library/Android/sdk/build-tools/22.0.1/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: 18.496 secs
ERROR building one of the platforms: Error code 1 for command: /Users/sebastienloisel/Dropbox/2016/kanji2/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/sebastienloisel/Dropbox/2016/kanji2/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
You may not have the required environment or OS to build this project
Error: Error code 1 for command: /Users/sebastienloisel/Dropbox/2016/kanji2/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/sebastienloisel/Dropbox/2016/kanji2/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
Sebastiens-MBP:kanji2 sebastienloisel$ cordova -version
6.0.0
Sebastiens-MBP:kanji2 sebastienloisel$ cordova plugins list
cordova-plugin-whitelist 1.2.1 "Whitelist"
Sebastiens-MBP:kanji2 sebastienloisel$ cordova platform list
Installed platforms: android 5.1.0, browser 4.0.0
Available platforms: amazon-fireos, blackberry10, firefoxos, ios, osx, webos
Sebastiens-MBP:kanji2 sebastienloisel$ 


> Build fails cryptically on Mac
> ------------------------------
>
>                 Key: CB-10678
>                 URL: https://issues.apache.org/jira/browse/CB-10678
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 6.0.0
>         Environment: Mac OSX
>            Reporter: Sébastien Loisel
>              Labels: newbie
>
> So here the direct bug is the cryptic error message (or even lack thereof) that is entirely unhelpful. Try as I might, suggested options such as --info, --debug, --stacktrace, etc, do nothing.
> I suspect that underlying this cryptic error message there is a genuine bug in aapt, but I have no way of knowing.
> Note that I am able to successfully build and deploy the "Hello world" app to my phone. When I then copy a bunch of files into the www subfolder, this problem happens. This thing used to work a couple of years ago but I just tried it again yesterday with the latest tools and it breaks. The only difference that I can think of between Hello World and my project, in terms of what the tools would have to do, is that my project is huge (it has thousands of mp3 files) and the resulting APK file is many gigabytes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org