resource error in android studio after update: No Resource Found

后端 未结 14 1174
别跟我提以往
别跟我提以往 2020-12-23 09:13

After a recent update to Android Studio, we\'re having problems getting a project to compile that previously worked. At first we were getting the following error:

         


        
相关标签:
14条回答
  • 2020-12-23 09:17

    you should change your compiledsdkversion and targetversion to 23 in the build gradle file specific to the app.Make sure you installed sdk 23, version 6.0 before this.You can watch this vid for more help.https://www.youtube.com/watch?v=pw4jKsOU7go

    0 讨论(0)
  • 2020-12-23 09:17

    Method 1: It is showing.you did not install Api 23. So please install API 23.

    Method 2:

    Change the appcompat version in your build.gradle file back to 22.0.1 (or less).

    0 讨论(0)
  • 2020-12-23 09:18

    Change the appcompat version in your build.gradle file back to 22.2.1 (or whatever you were using before).

    0 讨论(0)
  • 2020-12-23 09:19

    I noticed I didn't have sdk 23 installed. So I first installed it then re-built my project. And it worked fine. Also compilesdkVersion should be 23

    0 讨论(0)
  • 2020-12-23 09:20

    Attention, wrong answer coming! But anyone without apache libraries or so might find

    compileSdkVersion 23
    buildToolsVersion "23.0.0"
    
    
    
    //...
    
    
    dependencies {
    compile 'com.android.support:appcompat-v7:23.0.0'
    compile 'com.android.support:design:23.0.0'    
    
    }
    

    helpful, it did the trick for me.

    0 讨论(0)
  • 2020-12-23 09:20

    It's works just when the build.grade was changed to that:

    android {
        compileSdkVersion 22
        buildToolsVersion "22.0.1"
    
        defaultConfig {
            applicationId "blablabla"
            minSdkVersion 15
            targetSdkVersion 22
            versionCode 1
            versionName "1.0"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }
    
    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile 'com.android.support:appcompat-v7:22.0.0'
    }
    
    0 讨论(0)
提交回复
热议问题