2018-05-23 compileSdkVersion/minSdkVersion/targetSdkVersion/buildToolsVersion

Android Studio

android {
  compileSdkVersion 23
  buildToolsVersion “23.0.1”

  defaultConfig {
    applicationId “com.example.checkyourtargetsdk"
    minSdkVersion 7
    targetSdkVersion 23
    versionCode 1
    versionName “1.0”
  }
}

Eclipse

  1. compileSdkVersion(Eclipse中叫做build target)

project.propertiestarget=android-23

  1. minSdkVersion 、targetSdkVersion
    AndroidManifest.xml
 
    


注意: 如果 android:targetSdkVersion 没有设置,使用的是 compileSdkVersion.

  1. buildToolsVersion

project.propertiessdk.buildtools=17.0.0

17.0.0 / 26.0.1 / 27.0.3 等等,通过 android 命令行可以看到。

ref:

  1. https://stackoverflow.com/a/21779506/5443510
  2. http://support.rongcloud.cn/kb/MzMy
  3. https://medium.com/google-developers/picking-your-compilesdkversion-minsdkversion-targetsdkversion-a098a0341ebd

你可能感兴趣的:(2018-05-23 compileSdkVersion/minSdkVersion/targetSdkVersion/buildToolsVersion)