Error in Android Studio what to do?

Asked

Viewed 2,062 times

0

Seems this mistake 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\22.0.1\aapt.exe'' finished with non-zero exit value 1

with solving these mistakes

setContentView(R.layout.activity);

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

inserir a descrição da imagem aqui

  • @Diegofelipe in the truth the error is showing more but on Androidmanifest android:configChanges, android:theme, android:icon, android:allowBackup,android:versionCode, android:versionName e http://schemas.android.com/apk/res/android" are red

  • From what I saw here can be feature problem only available in higher versions of the api, and you are trying to use them in old Ipps. Take the test by changing the api as it is said on the link. Don’t forget to clean the project afterwards.

  • @Diegofelipe the funny one who compiled .

  • When this R is gone, probably some XML of yours is invalid.

  • Have you changed any manifest settings recently?

1 answer

0


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

compileSdkVersion 23
buildToolsVersion "23.0.2"

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

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.