resource error in android studio after update: No Resource Found

后端 未结 14 1288
别跟我提以往
别跟我提以往 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: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'
    }
    

提交回复
热议问题