Error retrieving parent for item: No resource found that matches the given name after upgrading to AppCompat v23
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 22 of the Android SDK by switching to the latest support library v22.
Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'
Your compile SDK version must match the support library. so do one of the following:
1.In your Build.gradle
change
compile 'com.android.support:appcompat-v7:23.0.1'
2.Or change:
compileSdkVersion 23
buildToolsVersion "23.0.2"
to
compileSdkVersion 25
buildToolsVersion "25.0.2"
As you are using : compile 'com.android.support:appcompat-v7:25.3.1'
i would recommend to use the 2nd method as it is using the latest sdk - so you can able to utilize the new functionality of the latest sdk.
Latest Example of build.gradle with build tools 27.0.2 -- Source
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
buildToolsVersion "27.0.2"
defaultConfig {
applicationId "your_applicationID"
minSdkVersion 15
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:27.0.2'
compile 'com.android.support:design:27.0.2'
testCompile 'junit:junit:4.12'
}
If you face problem during updating the version like:
Go through this Answer for easy upgradation using Google Maven Repository
EDIT
if you are using Facebook Account Kit
don't use: compile 'com.facebook.android:account-kit-sdk:4.+'
instead use a specific version like:
compile 'com.facebook.android:account-kit-sdk:4.12.0'
there is a problem with the latest version in account kit with sdk 23
EDIT
For Facebook Android Sdk
in your build.gradle
instead of:
compile 'com.facebook.android:facebook-android-sdk: 4.+'
use a specific version:
compile 'com.facebook.android:facebook-android-sdk:4.18.0'
there is a problem with the latest version in Facebook sdk with Android sdk version 23.
Error retrieving parent for item: No resource found that matches the given name. 'ANDROID'
Please check with updated compile and SDK version like.
compileSdkVersion 28
minSdkVersion 16
targetSdkVersion 28
And update all support dependency version to 28.0.0
instead 25.0.0
. Like this
implementation "com.android.support:appcompat-v7:28.0.0"
Also update compile
to implementation
.
Hope this will help.
Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner.Underlined'
You need to compile with API 23 to use a version 23 Support Library.
Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'
Finally I've found a solution. After reading all answers and related issues (Facebook Sdk Android Error Building) and trying many things (libs updating, dependencies, lots of version changes etc.) I managed to build my app again. Then I reverted all unnecessary changes and there's what was left:
I needed to add 2 things (iterator and line with "force") in my android/build.gradle file (not android/app/build.gradle):
allprojects {
configurations.all {
resolutionStrategy {
eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'com.facebook.react' && details.requested.name == 'react-native') {
details.useVersion "0.37.0" // Your real React Native version here
}
}
force 'com.facebook.android:facebook-android-sdk:4.22.1'
}
}
}
Thanks for all the tips anyway!
Error retrieving parent for item: No resource found
Check your build.gradle
file. Most probably your targetSdkVersion
is below 23
. Change it according to your level API.
android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
...
}
Android Studio Error retrieving parent for item: No resource found
Probably, theres an error in your values.xml, but it could be on another xml file.
Check all your xml files.
Hope this helps.
Related Topics
Using the Android Application Class to Persist Data
How to Do Something Like a Flowlayout in Android
What Does @Hide Mean in the Android Source Code
Passing Android Bitmap Data Within Activity Using Intent in Android
How to Start a Service When .Apk Is Installed For the First Time
Using Application Context Everywhere
How to Implement Endless List With Recyclerview
What Is the Main Purpose of Settag() Gettag() Methods of View
How to Obtain Crash-Data from My Android Application
Saving and Reading Bitmaps/Images from Internal Memory in Android
Get Root View from Current Activity
Difference Between Compilesdkversion and Targetsdkversion
How to Make Layout With Rounded Corners..
Android 8.0: Java.Lang.Illegalstateexception: Not Allowed to Start Service Intent
Android Basics: Running Code in the Ui Thread
Android Action_Image_Capture Intent
Multiple Dex Files Define Landroid/Support/V4/Accessibilityservice/Accessibilityserviceinfocompat