将我的android studio更新为2.2预览版本后,我有这样的错误:
Error:(93, 54) No resource found that matches the given name (at 'android:actionModeCloseDrawable' with value '@drawable/abc_ic_ab_back_mtrl_am_alpha').
我的build.gradle(app)是:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
defaultConfig {
applicationId "android.arisa.kalahroodfinal"
minSdkVersion 17
targetSdkVersion 25
versionCode 1
versionName "1.0"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
android {
useLibrary 'org.apache.http.legacy'
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile('cn.trinea.android.view.autoscrollviewpager:android-auto-scroll-view-pager:1.1.2') {
exclude module: 'support-v4'
}
compile('com.afollestad.material-dialogs:core:0.8.1.0@aar') {
transitive = true
}
compile('com.afollestad.material-dialogs:commons:0.8.1.0@aar') {
transitive = true
}
compile files('/Users/Bmaster/AndroidStudioProjects/KalahroodFinal/libraries/jsoup-1.9.1.jar')
compile 'com.android.support:design:25.1.0'
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.android.support:support-v4:25.1.0'
compile 'com.google.android.gms:play-services:9.6.1'
/*
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha1'
*/
testCompile 'junit:junit:4.12'
}
repositories {
maven { url "https://jitpack.io" }
mavenCentral()
jcenter()
}
我使用:classpath'com.android.tools.build:grad:2.2.2' 我已将构建工具更改为23版本,但我已经有错误!!
答案 0 :(得分:2)
将@drawable/abc_ic_ab_back_mtrl_am_alpha
替换为@drawable/abc_ic_ab_back_material
此资源已在此库中删除,请参阅this
<强>资源强> Update support library 23.2.0 build bug Question还有其他搜索结果的解释