当我将支持库版本从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管理器支持库更新到最新版本,但仍然遇到同样的错误。
答案 0 :(得分:2)
替换
@drawable/abc_ic_ab_back_mtrl_am_alpha
与@drawable/abc_ic_ab_back_material
这是source
答案 1 :(得分:1)
尝试将其更改为abc_ic_ab_back_material