[英]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.