gpt4 book ai didi

android - 更新到支持库 26.0.0 时,找不到与给定名称 : attr 'android:keyboardNavigationCluster' . 匹配的资源

转载 作者:IT老高 更新时间:2023-10-28 12:52:42 24 4
gpt4 key购买 nike

我在更新到最新的支持库版本 26.0.0 (https://developer.android.com/topic/libraries/support-library/revisions.html#26-0-0) 时遇到了这个问题:

Error:(18, 21) No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

/.../app/build/intermediates/res/merged/beta/debug/values-v26/values-v26.xml
Error:(15, 21) No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
Error:(18, 21) No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
Error:(15, 21) No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
Error:(18, 21) No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
Error:Execution failed for task ':app:processBetaDebugResources'.

com.android.ide.common.process.ProcessException: Failed to execute aapt

文件来自支持库:

<style name="Base.V26.Widget.AppCompat.Toolbar" parent="Base.V7.Widget.AppCompat.Toolbar">
<item name="android:touchscreenBlocksFocus">true</item>
<item name="android:keyboardNavigationCluster">true</item>
</style>

我们使用以下版本:

ext.COMPILE_SDK_VERSION = 26
ext.BUILD_TOOLS_VERSION = "26.0.1"

ext.MIN_SDK_VERSION = 17
ext.TARGET_SDK_VERSION = 26
ext.ANDROID_SUPPORT_LIBRARY_VERSION = "26.0.0"
ext.GOOGLE_PLAY_SERVICES_LIBRARY_VERSION = "11.0.2"

compile 'com.android.support:appcompat-v7:' + ANDROID_SUPPORT_LIBRARY_VERSION
compile 'com.android.support:design:' + ANDROID_SUPPORT_LIBRARY_VERSION
compile 'com.android.support:recyclerview-v7:' + ANDROID_SUPPORT_LIBRARY_VERSION

有什么想法吗?

最佳答案

我能够通过更新 gradle 中的 sdk 版本和工具来解决它 compileSdkVersion 26 buildToolsVersion "26.0.1"

支持库26.0.1 https://developer.android.com/topic/libraries/support-library/revisions.html#26-0-1

关于android - 更新到支持库 26.0.0 时,找不到与给定名称 : attr 'android:keyboardNavigationCluster' . 匹配的资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45301203/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com