相关疑难解决方法(0)

如何找到问题Android SDK 3.0错误:(9,5)错误:资源android:attr/colorError未找到

当我做了一个make时如何找到这个错误的问题我有这个错误信息:错误:(9,5)错误:资源android:attr/colorError not found

奇怪的是我有2个build.gradle文件:这里是我的build.gradle(Project:Projectname)文件:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
Run Code Online (Sandbox Code Playgroud)

在这里我的build.gradle(模块:app)文件:

apply plugin: 'com.android.application'
android {
    compileSdkVersion 22
    defaultConfig {
        applicationId "org.acme.nfcedit"
        minSdkVersion 22
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release { …
Run Code Online (Sandbox Code Playgroud)

android android-layout android-studio

7
推荐指数
1
解决办法
1万
查看次数

标签 统计

android ×1

android-layout ×1

android-studio ×1