close

今天在更新com.android.sukpport:appcompat的版本時

compile 'com.android.support:appcompat-v7:25.1.0'

出現了下列的問題

This support library should not use a different version (25) than the compileSdkVersion (xx)

這其實是要我們用新版的compileSdkVersion而己

只要修改位於build.gradle裡面的compileSdkVersion即可

android {
    compileSdkVersion 25
    buildToolsVersion "24.0.0"
    defaultConfig {
        minSdkVersion 11
        targetSdkVersion 24
        versionCode 1
        versionName "1.0"
    }

沒錯,就在同個文件之中喔

如果Android Studio要我們裝新Version的Sdk就點安裝吧

裝完就可以正常Run了

 

 


arrow
arrow
    全站熱搜

    顏澤偉 發表在 痞客邦 留言(0) 人氣()