Android modifies the method in the high jar package version of the project

  • 2020-05-07 20:24:32
  • OfStack

If android's application installation package APK is developed on the higher version of android jar, it cannot run on the lower version of android SDK, so we need to replace our already developed application with the lower version of android jar package and recompile one APK, then how to modify directly in the higher version of the project?

1. Click project - in eclipse > Properties- > Android select Android 2.2 in the screen on the right (provided your android sdk contains both versions of android jar package)
Or open the default.properties file and, at the root of the project, change target= android-10 (2.3) to target= android-8 (2.2), thus changing android jar 2.3 to android jar 2.2. When saved, eclipse will automatically replace android jar 2.3 in the project with android jar 2.2
2. Open the AndroidManifest.xml file and < uses-sdk android:minSdkVersion="10" / > Modified to < uses-sdk android:minSdkVersion="8" / > Save the file.
3. Recompile the project to generate APK:
The menu bar - > Project- > Clean
You can run this application on android system V 2.1.
4. If there is an class not found error, remember to select all 3rd party jar packages, add to build path, lib directory, use as source.
Then the menu bar - > Project- > Clean

The third party jar package class cannot be found.

Related articles: