美文网首页
2018-05-23 compileSdkVersion/mi

2018-05-23 compileSdkVersion/mi

作者: 自由快挂 | 来源:发表于2018-05-23 11:47 被阅读34次

    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
    <manifest> 
        <uses-sdk
            android:minSdkVersion="14"
            android:targetSdkVersion="23" />
    
    </manifest>
    

    注意: 如果 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/mi

          本文链接:https://www.haomeiwen.com/subject/zecrjftx.html