這些是我面臨的一些錯誤,並在這裏發佈的答案不是 幫助我。也許有人會提出別的東西:錯誤檢索父母的項目在Android工作室2.3
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
Error:(3) 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: Failed to execute aapt
這是我gradle這個文件,我看不出爲什麼它不接受建立在 的gradle更新:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '25.0.2'
defaultConfig {
applicationId "com.allianz.azemployee"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.squareup.okhttp3:okhttp:3.4.1'
compile 'com.google.android.gms:play-services-gcm:10.2.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.google.code.gson:gson:2.7'
compile 'com.github.szugyi:Android-CircleMenu:1.1.2'
compile 'com.bcgdv.asia.lib:fanmenu:1.2'
}
apply plugin: 'com.google.gms.google-services'
我一直在嘗試一些從stackoverflow選項,但似乎沒有工作。 compile 'com.android.support:appcompat-v7:23.4.0'
下劃線爲紅色This support library should not use a different version(25) than the compile version (23)
這是什麼意思?還有什麼是XML中的錯誤?
更新 我堅持用現在這個錯誤:
Error:(24, 25) No resource found that matches the given name (at 'background' with value '@color/common_action_bar_splitter').
/Users/AmosPune/Desktop/AZEmployee_2_sept_final/AZEmployee_2_sept_final/app/src/main/res/layout/tab_layout.xml
/Users/AmosPune/Desktop/AZEmployee_2_sept_final/AZEmployee_2_sept_final/app/build/intermediates/res/merged/debug/layout/tab_layout.xml
Error:(24, 25) No resource found that matches the given name (at 'background' with value '@color/common_action_bar_splitter').
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
將您的compileSdkVersion版本更改爲25 –
compile'com.android.support:appcompat-v7:25.0.2' –
詳細答案在這裏:https://stackoverflow.com/questions/42144415/error-retrieving-parent-for -item-no-resource-found-that-matches-the-given-name – rafsanahmad007