If the android application installation package APK is developed on a later Android jar, it cannot be run on a later Android SDK, therefore, we need to replace the developed application with an android jar package of a lower version to re-compile an APK. How can we simply modify it directly in the High Version project:
1. In eclipse, click "project"> "properties"> "android". Select "Android 2.2" on the right side of the page (provided that your android SDK contains both Android jar packages)
Or open default. properties file. In the root directory of the project, change target = Android-10 (2.3) to target = Android-8 (2.2 ), in this way, the original Android jar 2.3 is changed to Android jar 2.2. After the modification is completed, eclipse automatically changes the android
Replace jar 2.3 with Android jar 2.2
2. Open the androidmanifest. xml file and change <uses-SDK Android: minsdkversion = "10"/> to <uses-SDK Android: minsdkversion = "8"/> to save the file.
3. recompile the project to generate an APK:
Menu Bar-> Project-> clean
You can run this application on Android V2.1.