Change the SDK version in existing projects in Android studio and Android Eclipse

Source: Internet
Author: User


One, there are several ways to change the SDK version of the project under Eclipse, which is simple:
1, right-click Project--->properties---->resource----->android in Project In the Bulid Target dialog box, select the Android version you want.
2, Resource--->libraries dialog box to the right of the   addlibraries--->android Classpath Container---->next--- > select the project name to
3, if you do not trust, then we look at Androidmanifest.xml inside find   <uses-sdk android:minsdkversion= "10"/ > It indicates that the minimum can be compatible to Android 2.3.3 version to see if the modification was successful.
4, the project directory, there is a file called Default.properties, under the androidmanifest.xml go to modify the Target=android-xx
two, under Android studio change the SDK version of the project :
There is a local.properties configuration file in the project in Android Studio, in which the SDK.DIR=X:/XX/ANDROID_SDK is changed to change the specified path of Studio Introduction SDK. Then in studio, under the File menu, Project Structrue, to configure the various versions of the SDK to add or subtract points.
You can also manually change the Bulid.gradle file
Android {
    compilesdkversion
    Buildtoolsversion " 17.0.0 "
    defaultconfig {
        minsdkversion
         targetsdkversion
   }
}

To change the SDK version in an existing project in Android Studio and Android Eclipse

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.