Error: (1) Error retrieving parent for item: No resource found that matches the given name’android:TextAppearance.Material.Widget.Button.Borderless.Colored’.
Error:(1) Error retrieving parent for item : No resource found that matches the given name’android:TextAppearance.Material.Widget.Button.Borderless.Colored’.
Error:Execution failed for task’:app:processDebugResources’.
com. android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process’command’C:\Program Files (x86)\Android\android-sdk\build-tools\23.0.2\aapt.exe ”Finished with non-zero exit value 1
The files in the android project contain errors as follows:
build.gradle:
apply plugin:'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.anmol.checkboxapp"
minSdkVersion 15
targetSdkVersion 23
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:25.1.0'
}< /pre>If anyone has a solution to this problem so please help
1. Change in Build.gradle
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"
When in use: compile'com. android.support:appcompat-v7:25.3.1′
I recommend the second method because it uses the latest SDK-so you can use the new features of the latest SDK.
< p>The latest example of build.gradle, including 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< br /> 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 encounter problems when updating the version, for example:
Operate via Answer to use Google Maven Repository Easy to upgrade
Edit
If you are using Facebook Account Kit
Don’t use: compile'com.facebook.android:account-kit-sdk:4. "
but use a specific version, such as:
< p>
compile'com.facebook.android:account-kit-sdk:4.12.0'
There is a problem with the latest version of the account kit using SDK 23
Edit
Facebook Android Sdk
In 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 using Android sdk version 23.
When I start a new project in android studio , I received these errors.
Error:(1) Error retrieving parent for item: No resource found that matches the given name'android:TextAppearance .Material.Widget.Button.Borderless.Colored'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name'android:TextAppearance.Material.Widget.Button.Borderless .Colored'.
Error:Execution failed for task':app:processDebugResources'.
com.android.ide.common.proc ess.ProcessException: org.gradle.process.internal.ExecException: Process'command'C:\Program Files (x86)\Android\android-sdk\build-tools\23.0.2\aapt.exe" finished with non-zero exit value 1
The files in the android project contain errors as follows:
build.gradle:
apply plugin:'com.android.application'
androi d {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.anmol.checkboxapp"
minSdkVersion 15
targetSdkVersion 23
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:25.1.0'
}
If anyone has a solution to this problem so please Help
Your compiled SDK version must match the support library. Please do one of the following:
1. Change in Build.gradle
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"
When using: compile'com.android.support:appcompat-v7:25.3.1'
I recommend the second method, because Use the latest sdk for it-so you can use the new features of the latest sdk.
The latest example of build.gradle, including 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 encounter problems when updating the version, for example:
Operate through Answer to easily upgrade using Google Maven Repository
Edit
If you are using Facebook Account Kit
Don’t use: compile'com.facebook.android:account-kit-sdk:4. "
but use a specific version, such as:
compile'com.facebook.android:account-kit-sdk:4.12.0'
There is a problem with the latest version of the account kit using SDK 23
Edit
Facebook Android Sdk
In 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 of the Facebook sdk using Android sdk version 23.