Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
311 views
in Technique[技术] by (71.8m points)

android - how to fix 22.0.1aapt.exe'' finished with non-zero exit value 1

I was coding in android studio then this error will appear:

cannot resolve symbol 'R'

Error:Execution failed for task ':demo:processDebugResources'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:Android Developmentsdkandroid-sdkuild-tools22.0.1aapt.exe'' finished with non-zero exit value 1

this is my Gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion '22.0.1'

    defaultConfig {
        applicationId "br.liveo.ndrawer"
        minSdkVersion 21
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }
}

dependencies {
    compile project(':library')
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:design:22.2.0'
    compile 'com.android.support:appcompat-v7:22.2.0'
}

I use Android Studio V 1.0 , all API 22 and API 21 and Tools and Extras of SDK Manager are updated.

this options not working:

File/ Invalidate Cashes/Restart

Build/ Rebuild Project

Build/ Clean Project

what should I do know?

tnx

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I solve my problem:

1) check all your XML files for given unknown src. ImageView or ImageButton or any think, et:

android:src="@drawable/cards"

then

Build/ Rebuild Project

or

Build/ Clean Project

or

File/ Invalidate Cashes/Restart

Your problem will solve for sure 100% :D


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...