我尝试CardView在我的应用程序中添加一个,所以我在gradle中添加了以下依赖项
compile 'com.android.support:cardview-v7:22.2.1'
我意识到错误是由于我给出了错误的版本号.在看了官方的谷歌文档后,我才知道它Android Support Repository用于存放appcompat库.

正如您所看到的,我安装的支持存储库是版本33.但是如果我将我的gradle更改为版本33,它仍然显示错误.
如何查看android studio中我的AppCompatLibrary版本?
编辑:
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' …Run Code Online (Sandbox Code Playgroud)