Error in Android Studio what to do?

0

It seems this error to me

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error:(2) 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\Rodolfo\AppData\Local\Android\sdk\build-tools.0.1\aapt.exe'' finished with non-zero exit value 1

Resolving these errors

setContentView(R.layout.activity);

The R is red in the code and Androidmanifest where it starts with android: it is red

    
asked by anonymous 31.01.2016 / 17:02

1 answer

0

@Rodolfo I had a very similar error to yours. My problem was that in the build.gradle file, the one that sets you SDK to which version will compile these things, the compile properties were at odds with the dependencies.

compileSdkVersion 23
buildToolsVersion "23.0.2"

compile 'com.android.support:*-v7:23.1.1'

How your file is currently. Send it to us to take a look.

    
05.02.2016 / 18:45