Notice: The Monaca & Onsen UI Community Forum is shutting down.

For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.

Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.

Build Android 2.3.* and 3.0



  • I try:

    <preference name="android-minSdkVersion" value="9" />
    <preference name="android-maxSdkVersion" value="22" />
    <preference name="android-targetSdkVersion" value="21" />
    

    I try:

    <config-file target="AndroidManifest.xml" parent="/*">
            <uses-sdk android:maxSdkVersion="22" android:minSdkVersion="9" android:targetSdkVersion="21" />
        </config-file>
    

    Build log return:

    Fetch queue Info...
    Start building 594737168034518b6d3d6bb9
    Setup working directories...
    Download project archive...
    Extract project archive...
    Fetch project info...
    Webview:null
    Arch:null
    cordova version: 6.2.0
    
    
    - preBuild -
    buildForAndroid
    
    - Cordova create -
    $ /data/build-server/cordova/6.2.0/bin/cordova create /tmp/monaca/594737168034518b6d3d6bb9/project
    Creating a new cordova project.
    
    
    - Copy .monaca-res directory -
    
    - Cordova platform add -
    $ /data/build-server/cordova/6.2.0/bin/cordova platform list
    $ /data/build-server/cordova/6.2.0/bin/cordova platform add /data/build-server/cordova/platforms/android/5.1.1
    Adding android project...
    Creating Cordova project for the Android platform:
    	Path: platforms/android
    	Package: io.cordova.hellocordova
    	Name: HelloCordova
    	Activity: MainActivity
    	Android target: android-23
    Android project created with cordova-android@5.1.1
    Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
    Fetching plugin "cordova-plugin-whitelist@1" via npm
    Installing "cordova-plugin-whitelist" for android
    
                   This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
              
    
    
    - Copy config.xml -
    
    - Copy external plugin setting files -
    
    - Copy www files -
    
    - Cordova plugin add -
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add mobi.monaca.plugins.Monaca
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-whitelist@1.2.2
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-network-information@1.2.1
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-device@1.1.2
    
    - Cordova prepare -
    $ /data/build-server/cordova/6.2.0/bin/cordova prepare android
    
    
    - Cordova compile -
    $ /data/build-server/cordova/6.2.0/bin/cordova compile --debug --device
    ANDROID_HOME=/data/android-sdk
    JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home
    :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
    :CordovaLib:packageDebugRenderscript UP-TO-DATE
    :CordovaLib:checkDebugManifest
    :CordovaLib:prepareDebugDependencies
    :CordovaLib:compileDebugRenderscript
    :CordovaLib:generateDebugResValues
    :CordovaLib:generateDebugResources
    :CordovaLib:packageDebugResources
    :CordovaLib:compileDebugAidl
    :CordovaLib:generateDebugBuildConfig
    :CordovaLib:generateDebugAssets UP-TO-DATE
    :CordovaLib:mergeDebugAssets
    :CordovaLib:processDebugManifest
    :CordovaLib:processDebugResources
    :CordovaLib:generateDebugSources
    :CordovaLib:compileDebugJavaWithJavac
    :CordovaLib:processDebugJavaRes UP-TO-DATE
    :CordovaLib:transformResourcesWithMergeJavaResForDebug
    :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
    :CordovaLib:mergeDebugJniLibFolders
    :CordovaLib:transformNative_libsWithMergeJniLibsForDebug
    :CordovaLib:transformNative_libsWithSyncJniLibsForDebug
    :CordovaLib:bundleDebug
    :prepareAndroidCordovaLibUnspecifiedDebugLibrary
    :prepareDebugDependencies
    :compileDebugAidl
    :compileDebugRenderscript
    :generateDebugBuildConfig
    :generateDebugAssets UP-TO-DATE
    :mergeDebugAssets
    :generateDebugResValues
    :generateDebugResources
    :mergeDebugResources
    :processDebugManifest
    
    See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
    
    :processDebugManifest FAILED
    
    BUILD FAILED
    
    Total time: 3.26 secs
    
    
    - postBuild -
    Remove working directories...
    Build Error: Error: Sandbox Exec Error: [ 注意:一部の入力ファイルは非推奨のAPIを使用またはオーバーライドしています。
    注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
    /private/tmp/monaca/594737168034518b6d3d6bb9/project/platforms/android/AndroidManifest.xml:13:5-101 Error:
    	uses-sdk:minSdkVersion 10 cannot be smaller than version 14 declared in library [android:CordovaLib:unspecified:debug] /private/tmp/monaca/594737168034518b6d3d6bb9/project/platforms/android/build/intermediates/exploded-aar/android/CordovaLib/unspecified/debug/AndroidManifest.xml
    	Suggestion: use tools:overrideLibrary="org.apache.cordova" to force usage
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':processDebugManifest'.
    > Manifest merger failed : uses-sdk:minSdkVersion 10 cannot be smaller than version 14 declared in library [android:CordovaLib:unspecified:debug] /private/tmp/monaca/594737168034518b6d3d6bb9/project/platforms/android/build/intermediates/exploded-aar/android/CordovaLib/unspecified/debug/AndroidManifest.xml
      	Suggestion: use tools:overrideLibrary="org.apache.cordova" to force usage
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Error: Error code 1 for command: /private/tmp/monaca/594737168034518b6d3d6bb9/project/platforms/android/gradlew with args: cdvBuildDebug,-b,/private/tmp/monaca/594737168034518b6d3d6bb9/project/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
     ]
    


  • Onsen UI only supports Android 4.4.4+ and Android 4.0+ with Crosswalk engine.

    Won’t work at all with Android 2.x or 3.x.