CompileSdkVersionmı 26'ya güncelledim. Bu, gradle dosyamın şimdi nasıl göründüğü.En yeni destek kitaplığını nasıl kullanırım (Destek kitaplığı 26.0.2 ve compileSDKVersion 26 ile hatayı gidermek için başarısız oldu)?
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.0"
defaultConfig {
applicationId ##############
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:cardview-v7:25.3.1'
testCompile 'junit:junit:4.12'
}
Tahmin edileceği gibi, ben destek kütüphanesinden (25.3.1) ve CompileSdkVersion (26) ait sürümlerinde uyumsuzluğu (?) Için uyarılar olsun.
aşağıda sürümlerine destek kitaplığı sürümünü güncellemek çalıştık:
- derleme 'com.android.support:appcompat-v7:26.0.0'
- derleme 'com.android.support : AppCompat-v7: 26.0.2' bunlardan
sorun
Yok çalıştı. Her iki durumda da Failed to resolve
hataları gösterilmektedir. Install Repository and sync project
tıklandığında Android Studio birkaç saniye donuyor ve başka hiçbir şey olmuyor.
Bir şey mi eksik?
En son Android destek sürümü kütüphanesi here26.0.2
'dir.
Olası kopyası [Çözümlenemedi: com.android.support:appcompat-v7:26.0.0](https://stackoverflow.com/questions/45357000/failed-to-resolve-com-android-supportappcompat- v726-0-0) –