Skip to content

Instantly share code, notes, and snippets.

@mohamed-ea
Forked from romuloctba/howto.md
Created August 8, 2017 00:36
Show Gist options
  • Save mohamed-ea/c01b74933fabd88ff0b6651dab454624 to your computer and use it in GitHub Desktop.
Save mohamed-ea/c01b74933fabd88ff0b6651dab454624 to your computer and use it in GitHub Desktop.
Android 4.0.3 with Ionic Framework

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 cordova@4.0.0 (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.xml make 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 android should generate a valid APK for those versions, even thou it will have a different name because of the used cordova version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment