Error classse R, Android Studio

Asked

Viewed 120 times

0

After creating a project in Android Studio, the following error appears on the console:

/home/nayron/AndroidStudioProjects/MyApplication2 /app/build       /intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/res/values-v23/values-v23.xml
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 '/home/nayron/android-sdks/build-tools/23.0.1/aapt'' finished with non-zero exit value 1
Information:BUILD FAILED

Could you explain to me the possible reasons for this error and how to fix it, please?

  • Nayron, could you include your build.gradle?

1 answer

0

This error, in if dealing with Android Studio, can have many causes.

Giving a quick researched on the internet one perceives numerous pssoas with the same error and causes and different solutions.

One of them is to downgrade Gradle to the version com.android.tools.build:gradle:1.1.3 or upgrade to the latest version.

  • I tried to do what you recommended, but I was not successful. The error persists.

  • But anyway, thanks for your attention.

  • @Nayronmorais you’re using the 'Gradle'?

  • 1

    I think the mistake is because he’s using version 23 of apocopam but is not using the compileSdkVersion in version 23.

  • I’m a layman in this area, I don’t know if I’m using it.

Browser other questions tagged

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