Monaca build don't apply android selected version



  • Hi everyone, I tried to set a specific version android SDK to minimal, but the monaca build didn’t select the chosen version.

    look my config xml:

    <?xml version="1.0" encoding="utf-8"?>
    <widget xmlns="http://www.w3.org/ns/widgets" id="com.encontrocomcristo" version="7.0.0">
      <name>Radio ECC</name>
      <description>Made with Monaca (http://monaca.mobi)</description>
      <author/>
      <content src="index.html"/>
      <allow-navigation href="*"/>
      <allow-intent href="itms:*"/>
      <allow-intent href="itms-apps:*"/>
      <preference name="loglevel" value="DEBUG"/>
      <preference name="android-minSdkVersion" value="16"/>
      <preference name="android-targetSdkVersion" value="16"/>
      <preference name="xwalkVersion" value="19" />
      <preference name="AndroidLaunchMode" value="singleTop"/>
      <preference name="ErrorUrl" value=""/>
      <preference name="SplashScreen" value="screen"/>
      <preference name="AllowInlineMediaPlayback" value="false"/>
      <preference name="AutoHideSplashScreen" value="true"/>
      <preference name="BackupWebStorage" value="cloud"/>
      <preference name="EnableViewportScale" value="false"/>
      <preference name="FadeSplashScreen" value="true"/>
      <preference name="FadeSplashScreenDuration" value="250"/>
      <preference name="KeyboardDisplayRequiresUserAction" value="true"/>
      <preference name="MediaPlaybackRequiresUserAction" value="false"/>
      <preference name="ShowSplashScreenSpinner" value="false"/>
      <preference name="SuppressesIncrementalRendering" value="false"/>
      <preference name="TopActivityIndicator" value="gray"/>
      <preference name="GapBetweenPages" value="0"/>
      <preference name="PageLength" value="0"/>
      <preference name="PaginationBreakingMode" value="page"/>
      <preference name="PaginationMode" value="unpaginated"/>
      <feature name="LocalStorage">
        <param name="ios-package" value="CDVLocalStorage"/>
      </feature>
      <preference name="UIWebViewDecelerationSpeed" value="normal"/>
      <preference name="ios-XCBuildConfiguration-TARGETED_DEVICE_FAMILY" value="1,2"/>
      <platform name="ios">
        <icon height="57" src="/res/ios/icon/icon.png" width="57"/>
        <icon height="114" src="/res/ios/icon/icon@2x.png" width="114"/>
        <icon height="72" src="/res/ios/icon/icon-72.png" width="72"/>
        <icon height="144" src="/res/ios/icon/icon-72@2x.png" width="144"/>
        <icon height="60" src="/res/ios/icon/icon-60.png" width="60"/>
        <icon height="120" src="/res/ios/icon/icon-60@2x.png" width="120"/>
        <icon height="180" src="/res/ios/icon/icon-60@3x.png" width="180"/>
        <icon height="76" src="/res/ios/icon/icon-76.png" width="76"/>
        <icon height="152" src="/res/ios/icon/icon-76@2x.png" width="152"/>
        <icon height="40" src="/res/ios/icon/icon-40.png" width="40"/>
        <icon height="80" src="/res/ios/icon/icon-40@2x.png" width="80"/>
        <icon height="50" src="/res/ios/icon/icon-50.png" width="50"/>
        <icon height="100" src="/res/ios/icon/icon-50@2x.png" width="100"/>
        <icon height="29" src="/res/ios/icon/icon-small.png" width="29"/>
        <icon height="58" src="/res/ios/icon/icon-small@2x.png" width="58"/>
        <icon height="87" src="/res/ios/icon/icon-small@3x.png" width="87"/>
        <icon height="167" src="/res/ios/icon/icon-83.5@2x~ipad.png" width="167"/>
        <splash height="480" src="/res/ios/screen/Default~iphone.png" width="320"/>
        <splash height="960" src="/res/ios/screen/Default@2x~iphone.png" width="640"/>
        <splash height="1136" src="/res/ios/screen/Default-568h@2x~iphone.png" width="640"/>
        <splash height="1334" src="/res/ios/screen/Default-667h.png" width="750"/>
        <splash height="2208" src="/res/ios/screen/Default-736h.png" width="1242"/>
        <splash height="1242" src="/res/ios/screen/Default-Landscape-736h.png" width="2208"/>
        <splash height="1024" src="/res/ios/screen/Default-Portrait~ipad.png" width="768"/>
        <splash height="768" src="/res/ios/screen/Default-Landscape~ipad.png" width="1024"/>
        <splash height="2048" src="/res/ios/screen/Default-Portrait@2x~ipad.png" width="1536"/>
        <splash height="1536" src="/res/ios/screen/Default-Landscape@2x~ipad.png" width="2048"/>
        <config-file parent="CFBundleLocalizations" platform="ios" target="*-Info.plist">
          <array>
            <string>en</string>
          </array>
        </config-file>
      </platform>
      <platform name="android">
        <icon density="ldpi" src="/res/android/icon/ldpi.png"/>
        <icon density="mdpi" src="/res/android/icon/mdpi.png"/>
        <icon density="hdpi" src="/res/android/icon/hdpi.png"/>
        <icon density="xhdpi" src="/res/android/icon/xhdpi.png"/>
        <icon density="xxhdpi" src="/res/android/icon/xxhdpi.png"/>
        <icon density="xxxhdpi" src="/res/android/icon/xxxhdpi.png"/>
        <splash density="port-ldpi" src="/res/android/screen/splash-port-ldpi.png"/>
        <splash density="port-mdpi" src="/res/android/screen/splash-port-mdpi.png"/>
        <splash density="port-hdpi" src="/res/android/screen/splash-port-hdpi.png"/>
        <splash density="port-xhdpi" src="/res/android/screen/splash-port-xhdpi.png"/>
        <splash density="port-xxhdpi" src="/res/android/screen/splash-port-xxhdpi.png"/>
        <splash density="port-xxxhdpi" src="/res/android/screen/splash-port-xxxhdpi.png"/>
      </platform>
      <platform name="windows">
        <icon src="/res/winrt/icon/package_logo_winrt.png" target="StoreLogo"/>
        <icon src="/res/winrt/icon/app_logo_winrt.png" target="Square150x150Logo"/>
        <icon src="/res/winrt/icon/app_small_logo_winrt.png" target="Square30x30Logo"/>
        <icon src="/res/winrt/icon/app_tile_wide_logo_winrt.png" target="Wide315x150Logo"/>
        <splash height="300" src="/res/winrt/screen/app_splash_screen_winrt.png" width="620"/>
      </platform>
      <platform name="chrome">
        <icon height="128" src="/platforms/chrome/icon.png" width="128"/>
      </platform>
      <preference name="WindowsStorePublisherName" value="My Name"/>
      <preference name="WindowsStoreIdentityName" value="a59fa18e-e485-c665-a7c0-27dd694ddd28"/>
      <preference name="webView" value="org.crosswalk.engine.XWalkWebViewEngine"/>
      <engine name="ios" spec="~4.5.2"/>
      <engine name="android" spec="~6.3.0"/>
      <engine name="browser" spec="~5.0.1"/>
      <access origin="*"/>
      <preference name="KeepRunning" value="true"/>
      <preference name="monaca:AndroidIsPackageNameSeparate" value="false"/>
      <preference name="DisallowOverscroll" value="true"/>
      <preference name="Orientation" value="default"/>
      <preference name="SplashScreenDelay" value="1000"/>
      <preference name="Fullscreen" value="false"/>
    </widget>
    
    

    but, when the build finished, always show a different target version chosen, that I didn’t choose.


  • Monaca

    @Jonathan-Silva You need to write your SDK configuration within <platform name="android"> tag.



  • I did the changes, in the config.xml file, but when I build with monaca, the minimal version wasn’t changed.

    this is the config.xml file

    <?xml version='1.0' encoding='utf-8'?>
    <widget id="com.encontrocomcristo" version="5.0.0" xmlns="http://www.w3.org/ns/widgets">
        <name>Radio ECC</name>
        <description>Made with Monaca (http://monaca.mobi)</description>
        <author />
        <content src="index.html" />
        <allow-navigation href="*" />
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
        <preference name="loglevel" value="DEBUG" />
        <preference name="AndroidLaunchMode" value="singleTop" />
        <preference name="ErrorUrl" value="" />
        <preference name="SplashScreen" value="screen" />
        <preference name="AllowInlineMediaPlayback" value="false" />
        <preference name="AutoHideSplashScreen" value="true" />
        <preference name="BackupWebStorage" value="cloud" />
        <preference name="EnableViewportScale" value="false" />
        <preference name="FadeSplashScreen" value="true" />
        <preference name="FadeSplashScreenDuration" value="250" />
        <preference name="KeyboardDisplayRequiresUserAction" value="true" />
        <preference name="MediaPlaybackRequiresUserAction" value="false" />
        <preference name="ShowSplashScreenSpinner" value="false" />
        <preference name="SuppressesIncrementalRendering" value="false" />
        <preference name="TopActivityIndicator" value="gray" />
        <preference name="GapBetweenPages" value="0" />
        <preference name="PageLength" value="0" />
        <preference name="android-minSdkVersion" value="7" />
        <preference name="PaginationBreakingMode" value="page" />
        <preference name="PaginationMode" value="unpaginated" />
        <feature name="LocalStorage">
            <param name="ios-package" value="CDVLocalStorage" />
        </feature>
        <preference name="UIWebViewDecelerationSpeed" value="normal" />
        <preference name="ios-XCBuildConfiguration-TARGETED_DEVICE_FAMILY" value="1,2" />
        <platform name="ios">
            <icon height="57" src="/res/ios/icon/icon.png" width="57" />
            <icon height="114" src="/res/ios/icon/icon@2x.png" width="114" />
            <icon height="72" src="/res/ios/icon/icon-72.png" width="72" />
            <icon height="144" src="/res/ios/icon/icon-72@2x.png" width="144" />
            <icon height="60" src="/res/ios/icon/icon-60.png" width="60" />
            <icon height="120" src="/res/ios/icon/icon-60@2x.png" width="120" />
            <icon height="180" src="/res/ios/icon/icon-60@3x.png" width="180" />
            <icon height="76" src="/res/ios/icon/icon-76.png" width="76" />
            <icon height="152" src="/res/ios/icon/icon-76@2x.png" width="152" />
            <icon height="40" src="/res/ios/icon/icon-40.png" width="40" />
            <icon height="80" src="/res/ios/icon/icon-40@2x.png" width="80" />
            <icon height="50" src="/res/ios/icon/icon-50.png" width="50" />
            <icon height="100" src="/res/ios/icon/icon-50@2x.png" width="100" />
            <icon height="29" src="/res/ios/icon/icon-small.png" width="29" />
            <icon height="58" src="/res/ios/icon/icon-small@2x.png" width="58" />
            <icon height="87" src="/res/ios/icon/icon-small@3x.png" width="87" />
            <icon height="167" src="/res/ios/icon/icon-83.5@2x~ipad.png" width="167" />
            <splash height="480" src="/res/ios/screen/Default~iphone.png" width="320" />
            <splash height="960" src="/res/ios/screen/Default@2x~iphone.png" width="640" />
            <splash height="1136" src="/res/ios/screen/Default-568h@2x~iphone.png" width="640" />
            <splash height="1334" src="/res/ios/screen/Default-667h.png" width="750" />
            <splash height="2208" src="/res/ios/screen/Default-736h.png" width="1242" />
            <splash height="1242" src="/res/ios/screen/Default-Landscape-736h.png" width="2208" />
            <splash height="1024" src="/res/ios/screen/Default-Portrait~ipad.png" width="768" />
            <splash height="768" src="/res/ios/screen/Default-Landscape~ipad.png" width="1024" />
            <splash height="2048" src="/res/ios/screen/Default-Portrait@2x~ipad.png" width="1536" />
            <splash height="1536" src="/res/ios/screen/Default-Landscape@2x~ipad.png" width="2048" />
            <config-file parent="CFBundleLocalizations" platform="ios" target="*-Info.plist">
                <array>
                    <string>en</string>
                </array>
            </config-file>
        </platform>
        <platform name="android">
            <icon density="ldpi" src="/res/android/icon/ldpi.png" />
            <icon density="mdpi" src="/res/android/icon/mdpi.png" />
            <icon density="hdpi" src="/res/android/icon/hdpi.png" />
            <icon density="xhdpi" src="/res/android/icon/xhdpi.png" />
            <icon density="xxhdpi" src="/res/android/icon/xxhdpi.png" />
            <icon density="xxxhdpi" src="/res/android/icon/xxxhdpi.png" />
            <splash density="port-ldpi" src="/res/android/screen/splash-port-ldpi.png" />
            <splash density="port-mdpi" src="/res/android/screen/splash-port-mdpi.png" />
            <splash density="port-hdpi" src="/res/android/screen/splash-port-hdpi.png" />
            <splash density="port-xhdpi" src="/res/android/screen/splash-port-xhdpi.png" />
            <splash density="port-xxhdpi" src="/res/android/screen/splash-port-xxhdpi.png" />
            <splash density="port-xxxhdpi" src="/res/android/screen/splash-port-xxxhdpi.png" />
            <preference name="android-minSdkVersion" value="16"/>
        </platform>
        <platform name="windows">
            <icon src="/res/winrt/icon/package_logo_winrt.png" target="StoreLogo" />
            <icon src="/res/winrt/icon/app_logo_winrt.png" target="Square150x150Logo" />
            <icon src="/res/winrt/icon/app_small_logo_winrt.png" target="Square30x30Logo" />
            <icon src="/res/winrt/icon/app_tile_wide_logo_winrt.png" target="Wide315x150Logo" />
            <splash height="300" src="/res/winrt/screen/app_splash_screen_winrt.png" width="620" />
        </platform>
        <platform name="chrome">
            <icon height="128" src="/platforms/chrome/icon.png" width="128" />
        </platform>
        <preference name="WindowsStorePublisherName" value="My Name" />
        <preference name="WindowsStoreIdentityName" value="a59fa18e-e485-c665-a7c0-27dd694ddd28" />
        <preference name="webView" value="org.crosswalk.engine.XWalkWebViewEngine" />
        <access origin="*" />
        <preference name="KeepRunning" value="true" />
        <preference name="monaca:AndroidIsPackageNameSeparate" value="false" />
        <preference name="DisallowOverscroll" value="true" />
        <preference name="Orientation" value="default" />
        <preference name="SplashScreenDelay" value="1000" />
        <preference name="Fullscreen" value="false" />
        <engine name="ios" spec="~4.5.2" />
        <engine name="android" spec="~6.3.0" />
        <engine name="browser" spec="~5.0.1" />
    </widget>
    
    

    this is the log file:

    Fetch queue Info...
    Start building 5a039378e7888554248b4567
    Setup working directories...
    Download project archive...
    Extract project archive...
    Fetch project info...
    Search builder by config
    Webview:crosswalk
    Arch:x86
    cordova version: 6.5.0
    
    
    - preBuild -
    buildForAndroid
    
    - Cordova create -
    $ /data/build-server/cordova/6.5.0/bin/cordova create /tmp/monaca/5a039378e7888554248b4567/project
    Creating a new cordova project.
    
    
    - Copy .monaca-res directory -
    
    - Copy config.xml -
    
    - Cordova platform add -
    $ /data/build-server/cordova/6.5.0/bin/cordova platform add /data/build-server/cordova/platforms/android/6.2.3
    Adding android project...
    Creating Cordova project for the Android platform:
        Path: platforms/android
        Package: com.encontrocomcristo
        Name: Radio_ECC
        Activity: MainActivity
        Android target: android-25
    Subproject Path: CordovaLib
    Android project created with cordova-android@6.2.3
    
    
    - Copy external plugin setting files -
    
    - Copy files for signing -
    
    - Copy www files -
    
    - Cordova plugin add -
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add mobi.monaca.plugins.Monaca
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add mobi.monaca.plugins.Share@1.0.0
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-whitelist@1.3.1
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-splashscreen@4.0.3
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-custom-config@2.0.3
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-crosswalk-webview@2.3.0 --variable XWALK_VERSION=23.53.589.4
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-inappbrowser@1.7.1
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-network-information@1.3.3
    
    - Cordova prepare -
    $ /data/build-server/cordova/6.5.0/bin/cordova prepare android
    cordova-custom-config: Skipping auto-restore of config file backup(s)
    
    
    - Cordova compile -
    $ /data/build-server/cordova/6.5.0/bin/cordova compile --release --device
    apkDir:/tmp/monaca/5a039378e7888554248b4567/project/platforms/android/build/outputs/apk
    apkPath:/tmp/monaca/5a039378e7888554248b4567/project/platforms/android/build/outputs/apk/android-x86-release.apk
    ANDROID_HOME=/data/android-sdk
    JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home
    :wrapper
    
    BUILD SUCCESSFUL
    
    Total time: 0.798 secs
    Subproject Path: CordovaLib
    null
    The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
        at build_8kfyii9ffabdd8cu473t589uw.run(/private/tmp/monaca/5a039378e7888554248b4567/project/platforms/android/build.gradle:138)
    org.xwalk:xwalk_core_library:23.53.589.4
    The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
    Incremental java compilation is an incubating feature.
    The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
    :preBuild UP-TO-DATE
    :preArmv7ReleaseBuild UP-TO-DATE
    :checkArmv7ReleaseManifest
    :preArmv7DebugBuild UP-TO-DATE
    :preX86DebugBuild UP-TO-DATE
    :preX86ReleaseBuild UP-TO-DATE
    :CordovaLib:preBuild UP-TO-DATE
    :CordovaLib:preDebugBuild UP-TO-DATE
    :CordovaLib:checkDebugManifest
    :CordovaLib:prepareDebugDependencies
    :CordovaLib:compileDebugAidl
    :CordovaLib:compileDebugNdk UP-TO-DATE
    :CordovaLib:compileLint
    :CordovaLib:copyDebugLint UP-TO-DATE
    :CordovaLib:mergeDebugShaders
    :CordovaLib:compileDebugShaders
    :CordovaLib:generateDebugAssets
    :CordovaLib:mergeDebugAssets
    :CordovaLib:mergeDebugProguardFiles
    :CordovaLib:packageDebugRenderscript UP-TO-DATE
    :CordovaLib:compileDebugRenderscript
    :CordovaLib:generateDebugResValues
    :CordovaLib:generateDebugResources
    :CordovaLib:packageDebugResources
    :CordovaLib:processDebugManifest
    :CordovaLib:generateDebugBuildConfig
    :CordovaLib:processDebugResources
    :CordovaLib:generateDebugSources
    :CordovaLib:incrementalDebugJavaCompilationSafeguard
    :CordovaLib:compileDebugJavaWithJavac
    :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
    :CordovaLib:processDebugJavaRes UP-TO-DATE
    :CordovaLib:transformResourcesWithMergeJavaResForDebug
    :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
    :CordovaLib:mergeDebugJniLibFolders
    :CordovaLib:transformNative_libsWithMergeJniLibsForDebug
    :CordovaLib:transformNative_libsWithSyncJniLibsForDebug
    :CordovaLib:bundleDebug
    :CordovaLib:preReleaseBuild UP-TO-DATE
    :CordovaLib:checkReleaseManifest
    :CordovaLib:prepareReleaseDependencies
    :CordovaLib:compileReleaseAidl
    :CordovaLib:compileReleaseNdk UP-TO-DATE
    :CordovaLib:copyReleaseLint UP-TO-DATE
    :CordovaLib:mergeReleaseShaders
    :CordovaLib:compileReleaseShaders
    :CordovaLib:generateReleaseAssets
    :CordovaLib:mergeReleaseAssets
    :CordovaLib:mergeReleaseProguardFiles
    :CordovaLib:packageReleaseRenderscript UP-TO-DATE
    :CordovaLib:compileReleaseRenderscript
    :CordovaLib:generateReleaseResValues
    :CordovaLib:generateReleaseResources
    :CordovaLib:packageReleaseResources
    :CordovaLib:processReleaseManifest
    :CordovaLib:generateReleaseBuildConfig
    :CordovaLib:processReleaseResources
    :CordovaLib:generateReleaseSources
    :CordovaLib:incrementalReleaseJavaCompilationSafeguard
    :CordovaLib:compileReleaseJavaWithJavac
    :CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
    :CordovaLib:processReleaseJavaRes UP-TO-DATE
    :CordovaLib:transformResourcesWithMergeJavaResForRelease
    :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
    :CordovaLib:mergeReleaseJniLibFolders
    :CordovaLib:transformNative_libsWithMergeJniLibsForRelease
    :CordovaLib:transformNative_libsWithSyncJniLibsForRelease
    :CordovaLib:bundleRelease
    :prepareComAndroidSupportSupportCompat2600Alpha1Library
    :prepareComAndroidSupportSupportCoreUi2600Alpha1Library
    :prepareComAndroidSupportSupportCoreUtils2600Alpha1Library
    :prepareComAndroidSupportSupportFragment2600Alpha1Library
    :prepareComAndroidSupportSupportMediaCompat2600Alpha1Library
    :prepareComAndroidSupportSupportV42600Alpha1Library
    :prepareOrgApacheCordovaCordovaLib623ReleaseLibrary
    :prepareOrgXwalkXwalk_core_library23535894Library
    :prepareArmv7ReleaseDependencies
    :compileArmv7ReleaseAidl
    :compileArmv7ReleaseRenderscript
    :generateArmv7ReleaseBuildConfig
    :mergeArmv7ReleaseShaders
    :compileArmv7ReleaseShaders
    :generateArmv7ReleaseAssets
    :mergeArmv7ReleaseAssets
    :createXwalkCommandLineFileArmv7Release
    :generateArmv7ReleaseResValues
    :generateArmv7ReleaseResources
    :mergeArmv7ReleaseResources
    :processArmv7ReleaseManifest
    :processArmv7ReleaseResources
    :generateArmv7ReleaseSources
    :incrementalArmv7ReleaseJavaCompilationSafeguard
    :compileArmv7ReleaseJavaWithJavac
    :compileArmv7ReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
    :compileArmv7ReleaseNdk UP-TO-DATE
    :compileArmv7ReleaseSources
    :lintVitalArmv7Release
    :transformClassesWithDexForArmv7Release
    :mergeArmv7ReleaseJniLibFolders
    :transformNative_libsWithMergeJniLibsForArmv7Release
    :processArmv7ReleaseJavaRes UP-TO-DATE
    :transformResourcesWithMergeJavaResForArmv7Release
    :validateSigningArmv7Release
    :packageArmv7Release
    :assembleArmv7Release
    :checkX86ReleaseManifest
    :prepareX86ReleaseDependencies
    :compileX86ReleaseAidl
    :compileX86ReleaseRenderscript
    :generateX86ReleaseBuildConfig
    :mergeX86ReleaseShaders
    :compileX86ReleaseShaders
    :generateX86ReleaseAssets
    :mergeX86ReleaseAssets
    :createXwalkCommandLineFileX86Release
    :generateX86ReleaseResValues
    :generateX86ReleaseResources
    :mergeX86ReleaseResources
    :processX86ReleaseManifest
    :processX86ReleaseResources
    :generateX86ReleaseSources
    :incrementalX86ReleaseJavaCompilationSafeguard
    :compileX86ReleaseJavaWithJavac
    :compileX86ReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
    :compileX86ReleaseNdk UP-TO-DATE
    :compileX86ReleaseSources
    :lintVitalX86Release
    :transformClassesWithDexForX86Release
    :mergeX86ReleaseJniLibFolders
    :transformNative_libsWithMergeJniLibsForX86Release
    :processX86ReleaseJavaRes UP-TO-DATE
    :transformResourcesWithMergeJavaResForX86Release
    :validateSigningX86Release
    :packageX86Release
    :assembleX86Release
    :assembleRelease
    :cdvBuildRelease
    
    BUILD SUCCESSFUL
    
    Total time: 39.765 secs
    Built the following apk(s): 
        /private/tmp/monaca/5a039378e7888554248b4567/project/platforms/android/build/outputs/apk/android-armv7-release.apk
        /private/tmp/monaca/5a039378e7888554248b4567/project/platforms/android/build/outputs/apk/android-x86-release.apk
    
    
    - postBuild -
    Built App Path: /tmp/monaca/5a039378e7888554248b4567/project/platforms/android/build/outputs/apk/android-x86-release.apk
    Remove working directories...
    Build Success!
    
    

  • Monaca

    @Jonathan-Silva How do you know it’s not changed? You can check the minSdk in the APK file by opening the file with Android Studio or run the following command:

    aapt list -a packag.apk | grep SdkVersion

    I tested it and it changed as configured in the config.xml file. Btw, the default minSdk is already 16.



  • @khemry I knew when I upload that signed apk, don’t shows in playstore to 16’s device versions.



  • @khemry take a look in that link:

    here on playstore

    and, I am using that script to use material design:

    <script>
    ons.platform.select('android');
    </script>
    

    and I had unpublish the older app on playstore to publish this.
    I think that is a problem in monaca.

    so, what I should do?


  • Monaca

    @Jonathan-Silva Can you try using the following command with your APK file and show me what the result is:

    aapt list -a packag.apk | grep SdkVersion
    

Log in to reply