Compile with different targertSDK?

  • How do I change the targetSDK of a compiled build? I have added minSDK, maxSDK, and tragetSDK to my config.xml, all with no success. Any help is appreciated…

  • Monaca

    How did you add the SDK configuration in config.xml file? Here is an example of how you should manually config the SDK settings:

        <!-- Add them as preference elements -->
        <preference name="android-minSdkVersion" value="10" />
        <preference name="android-maxSdkVersion" value="22" />
        <preference name="android-targetSdkVersion" value="21" />
        <!-- Or you can use a config-file element for them -->
        <config-file target="AndroidManifest.xml" parent="/*">
            <uses-sdk android:maxSdkVersion="22" android:minSdkVersion="10" android:targetSdkVersion="21" />

Log in to reply