I know its a very frecuently question in the forum, but I couldn’t find ANY good answer to my problem.
When I create a new project and add android ($ionic platform add android), and when it’s initializing the Android, says automatically:
Android target: android-22
I cannot find any way to tell ionic (or cordova in this case) to use another lower API level, as 19 for instance.
- I have PATH’s working properly.
- I have API 19 downloaded in Android SDK (also I can see it in …/Android/SDK/platforms folder).
- I DON’T have downloaded the API 22, coz Android 5.1.1 it’s not compatible with the most used Android 4.X.
I have modified several files within my project:
./platform/androind/AndroidManifest.xml // And changed < android:targetSdkVersion=“19”>
How Can I Specify The “Android API Level” of app project?
And files that Im sure makes nosense I modify coz they are modified automatically later:
(platforms/android/project.properties // platforms/android/CordovaLib/project.properties)
And also the config.xml in the project folder.
All comes when I type: (ionic build android) and shows:
(Error: Please install Android target: “android-22”.)
Sorry again for this repeated question in forums, but none of the answers found worked to me.
Thank you in advance, best regards.