How to modify Android SDK in the project of the high jar package

Source: Internet
Author: User

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. Save the changes. eclipse automatically replaces android jar 2.3 with android jar 2.2 in the project.
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.
4. If a class not found error occurs, remember to select all third-party jar packages, add to build path, select the lib directory, and use as source.
Then, choose "Project"> "Clean" from the menu bar.

The error cannot be found in third-party jar packages.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.