Regnoult Regnoult - 2 years ago 536
Android Question

Android Studio - Appcompat build fail values-v23/styles_bases.xml

I'll start from what I want to achieve: building the googlecast-manager example provided here:
I followed instructions here:

So first I downloaded from github the project, then with the Android SDK Manager I downloaded Android Support Libraries and Google play Services. Then in my project, I went to "Open Modules Setting->Add" then went to "Android SDK\extras\android\support\v7\appcompat" and added it.

Then first step to ensure it's working I want to build it. So right click on appcompat->"Compile Module Appcompat" it fails with 2 errors:

  • Error:(20, -1) android-apt-compiler: [appcompat] D:\Android SDK\extras\android\support\v7\appcompat\res\values-v23\styles_base.xml:20: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.

  • Error:(19, -1) android-apt-compiler: [appcompat] D:\Android SDK\extras\android\support\v7\appcompat\res\values-v23\styles_base_text.xml:19: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.

Doing the same for Google Play Compiled like a charm.

I've tried to find videos/other similar issue but it's ever too complicated or not my problem.

Here is the AndroidManifest.xml of appcompat:

<manifest xmlns:android=""
<uses-sdk android:minSdkVersion="9"
<application />

Here is what is installed from the Android SDK Manager:
SDK Manager top
SDK Manager bottom

Answer Source

I also encounter the same problem & now have fixed it you just have to do is in android studio the build.gradle module:app under the gradle script at the left side in android studio. look the build.gradle file's code should be something like below.

In short you have to download & install latest API which is now API 23

apply plugin: ''

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.0"

    defaultConfig {
        applicationId ""
        minSdkVersion 9
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'),''

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile ''
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download