Я пытался добавить CardView
в моем приложении, так что я добавил следующую зависимость в моем GradleКакой версию библиотеки поддержки установлен в моей Android Studio
compile 'com.android.support:cardview-v7:22.2.1'
я понял, что ошибка вызвана тем, что I дали неправильный номер версии. Посмотрев официальные документы google, я узнал, что Android Support Repository
используется для хранения библиотек appcompat
.
Как вы можете видеть, репозиторий поддержки, который я установил, - это версия 33. Но если я изменю свою граду к версии 33, она все еще показывает ошибку.
Как проверить, какая версия AppCompatLibrary у меня в студии Android?
EDIT:
build.gradle
файл
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 22
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.spintum.preexam"
minSdkVersion 19
targetSdkVersion 22
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
mavenCentral()
}
dependencies {
// compile fileTree (dir:'libs',include:'achartengine-*.jar')
//compile fileTree('libs/achartengine-1.1.0.jar')
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:percent:22.2.0'
compile 'com.android.support:design:22.2.1'
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.android.support:support-v4:22.2.0'
compile 'com.android.support:cardview-v7:+'
//compile 'com.android.support:recyclerview-v7:22.2.+'
compile 'com.google.code.gson:gson:2.3.1'
compile 'com.google.android.gms:play-services:8.3.0'
compile 'com.google.android.gms:play-services-auth:8.3.0'
compile 'com.google.android.gms:play-services-identity:8.3.0'
compile 'com.google.android.gms:play-services-plus:8.3.0'
compile 'com.google.android.gms:play-services-location:8.3.0'
compile 'com.android.support:multidex:1.0.0'
compile 'com.github.markushi:circlebutton:1.1'
compile 'com.facebook.android:facebook-android-sdk:4.0.0'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.ToxicBakery.viewpager.transforms:view-pager-transforms:[email protected]'
}
33 неправильный ... должен быть 23. https://developer.android.com/topic/libraries/support-library/features.html#v7 –