![](/img/trans.png)
[英]Android Support Library Build v26.X.X Build Error: Attribute “font” already defined
[英]Android Support library Build V 25 error
当我将支持库版本从23.4.0更新到25时,值v11样式值出现错误
这是我的配置:
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
renderscriptTargetApi 21
applicationId "com.myapp"
minSdkVersion 16
renderscriptSupportModeEnabled true
targetSdkVersion 25
versionCode 64
versionName "2.0.8"
multiDexEnabled true
}
还有我的支持库:
def SUPPORT_LIBRARY_VERSION = '25.0.0'
compile "com.android.support:appcompat-v7:$SUPPORT_LIBRARY_VERSION"
compile("com.android.support:support-v4:$SUPPORT_LIBRARY_VERSION") {
force = true;
}
compile "com.android.support:design:$SUPPORT_LIBRARY_VERSION"
compile "com.android.support:palette-v7:$SUPPORT_LIBRARY_VERSION"
compile "com.android.support:recyclerview-v7:$SUPPORT_LIBRARY_VERSION"
compile "com.android.support:cardview-v7:$SUPPORT_LIBRARY_VERSION"
androidTestCompile "com.android.support:support-annotations:$SUPPORT_LIBRARY_VERSION"
我得到的错误:
Error:(109, 54) No resource found that matches the given name (at 'android:actionModeCloseDrawable' with value '@drawable/abc_ic_ab_back_mtrl_am_alpha').
Error:(109, 54) No resource found that matches the given name (at 'android:actionModeCloseDrawable' with value '@drawable/abc_ic_ab_back_mtrl_am_alpha').
但是,当我将支持库版本恢复为23时,它的构建就很好了。
我想念什么? 我刚刚将我的Android SDK Manager支持库更新为最新版本,但仍然遇到相同的错误。
将@drawable/abc_ic_ab_back_mtrl_am_alpha
替换为@drawable/abc_ic_ab_back_material
这就是来源
尝试将其更改为abc_ic_ab_back_material
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.