简体   繁体   中英

No resource found that matches the given name error in android after updating android studio and build tools

After updating my android studio to 2.2 preview 4 version i have this errors:

Error:(93, 54) No resource found that matches the given name (at 'android:actionModeCloseDrawable' with value '@drawable/abc_ic_ab_back_mtrl_am_alpha').

my build.gradle (app) is :

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()
}

and i use : classpath 'com.android.tools.build:gradle:2.2.2' I have changed build tools to 23 version but I already have that error!!

Replace @drawable/abc_ic_ab_back_mtrl_am_alpha with @drawable/abc_ic_ab_back_material

This resource has been removed in this library see this

RESOURCES Update support library 23.2.0 build bug Question Also other searching results for explanation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM