Kar*_*kar 2 android android-styles
这些是我面临的一些错误,这里发布的答案也没有帮助我.也许任何人都可以提出其他建议
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
Run Code Online (Sandbox Code Playgroud)
这是我的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'
Run Code Online (Sandbox Code Playgroud)
我一直在尝试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
Run Code Online (Sandbox Code Playgroud)
步骤1
首先调用compileSdkVersion 25.
compileSdkVersion 25
buildToolsVersion '25.0.2'
Run Code Online (Sandbox Code Playgroud)
第2步
您应该使用v7:25.2.0/v7:25.3.1版本而不是v7:23.4.0.
compile 'com.android.support:appcompat-v7:25.2.0' //or 25.3.1
Run Code Online (Sandbox Code Playgroud)
然后清理 - 重建 - 重新启动并运行.
| 归档时间: |
|
| 查看次数: |
1234 次 |
| 最近记录: |