RNK
RNK

Reputation: 5792

No resource found that matches the given name: 'android:TextAppearance.Material.Widget.Button.Inverse'

The project was running fine. I tried to add a fragment and I am getting below error.

Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'. Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.

Error:Execution failed for task ':app:processDebugResources'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Th\AndroidSdk\build-tools\21.1.1\aapt.exe'' finished with non-zero exit value 1

I didn't change anything.

Gradle:

compileSdkVersion 21
buildToolsVersion "21.1.1"

defaultConfig {
    applicationId "com.example.app.app"
    minSdkVersion 14
    targetSdkVersion 21
    multiDexEnabled = true
}

Please guide me. Thanks.

Upvotes: 0

Views: 161

Answers (2)

Zoe - Save the data dump
Zoe - Save the data dump

Reputation: 28268

targetSdkVersion 21

This does not work because API 22 and below does not have material design like API 23+(which you are trying to use according to the error). You have to use AppCompat v21. This question may also help you answer your question: Implement material design in android 5.0 and lower

Upvotes: 0

Lance Chen
Lance Chen

Reputation: 1

enter image description here

just do as the picture show,it will fix the problems!

Upvotes: 0

Related Questions