I want to make Ionic Framework projects work on Android 4.0.3
-
Android 4.0.3 is API Lvl 15, download it via ADV
-
npm install -g [email protected] (Newer versions may not work with android-15)
-
ionic platform add android
-
edit config.xml >
<preference name="android-minSdkVersion" value="14"/> -
at
/yourpojectfolder/platforms/android/AndroidManifest.xmlmake sure the uses-sdk options is like this<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="15" /> -
run
cordova platform update android -
if you want, you can make a in-folder search for
android-19(or the version that appears during build, if not already 14 or 15) -
now the
ionic build androidshould generate a valid APK for those versions, even thou it will have a different name because of the used cordova version