-1

I am getting following error :

Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'. in values v-23.xml

Here is my gradle file :

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "com.example.ashwin_bhoyar.techtt"
        minSdkVersion 15
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:24.0.0-alpha1'
    compile 'com.google.android.gms:play-services:8.4.0'
}
Ahmad Aghazadeh
  • 16,571
  • 12
  • 101
  • 98
ashwinbhy
  • 600
  • 1
  • 8
  • 30
  • http://stackoverflow.com/questions/32075498/error-retrieving-parent-for-item-no-resource-found-that-matches-the-given-name – Nabin Mar 15 '16 at 06:10

4 Answers4

1

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

You should call API Level 23

compileSdkVersion 23
buildToolsVersion "23.1.0"

defaultConfig {
    applicationId "com.example.ashwin_bhoyar.techtt"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}

And use

compile 'com.android.support:appcompat-v7:23.1.0'
IntelliJ Amiya
  • 74,896
  • 15
  • 165
  • 198
1

Please add this to your gradle.

compile 'com.android.support:appcompat-v7:23.1.0'

Hope this would work

IntelliJ Amiya
  • 74,896
  • 15
  • 165
  • 198
Visal Varghese
  • 436
  • 5
  • 14
0

I edited your gradle code ............try to this,I hope's its works

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "com.example.ashwin_bhoyar.techtt"
        minSdkVersion 15
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:21.1.2'
    compile 'com.google.android.gms:play-services:8.4.0'
}
Gaurav Rawal
  • 218
  • 1
  • 6
0

Your compile SDK version must match the support library's major version.

Since you are using version 23 of the support library, you need to compile against version 23 of the Android SDK.

Alternatively you can continue compiling against version 21 of the Android SDK by switching to the latest support library v21.

Please check The highlighted Part Of image Update Your SDK Version For using..'android:TextAppearance.Material.Widget.Button.Inverse'. in values v-23.xml

Nandkishor mewara
  • 2,552
  • 16
  • 29
  • For more Info... please check it.. http://stackoverflow.com/questions/32075498/error-retrieving-parent-for-item-no-resource-found-that-matches-the-given-name – Nandkishor mewara Mar 15 '16 at 06:25