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