Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 无法解析符号';?SelectableItemBackground无边框';_Android_Xml_Android Layout_User Interface - Fatal编程技术网

Android 无法解析符号';?SelectableItemBackground无边框';

Android 无法解析符号';?SelectableItemBackground无边框';,android,xml,android-layout,user-interface,Android,Xml,Android Layout,User Interface,我面临一个奇怪的问题。当我使用以下属性时,这些属性可以完美地工作,我可以看到设备中的涟漪效应 android:foreground="?selectableItemBackgroundBorderless" android:background="?selectableItemBackgroundBorderless" 但在IDE中,它显示一个错误,无法解析符号“?SelectableItemBackgroundless” Android Studio:v3.1.2 compileSdkVe

我面临一个奇怪的问题。当我使用以下属性时,这些属性可以完美地工作,我可以看到设备中的涟漪效应

android:foreground="?selectableItemBackgroundBorderless"

android:background="?selectableItemBackgroundBorderless"
但在IDE中,它显示一个错误,无法解析符号
“?SelectableItemBackgroundless”

Android Studio:v3.1.2

compileSdkVersion 27
buildToolsVersion "27.0.3"

support_version = '27.1.1'

有什么问题吗?

我在
27.0.3

使用
27.0.3
版本

使用
27.0.2
版本

使用
27.0.2
代替
27.0.3

清理重建运行
您的项目

编辑


如果您想使用
27.0.3
,请遵循以下答案

从API版本级别21开始使用:

android:foreground="?android:attr/selectableItemBackgroundBorderless"
android:background="?android:attr/selectableItemBackgroundBorderless"

android:background=“?attr/selectableItemBackground”你的gradle中有maven{url'}吗?android:background=“?attr/selectableItemBackground”也有same@ZezariyaNilesh更好:android:前台=“?android:attr/selectableItemBackground”是的,我的存储库@Skizo oz中有google()ᴉʞ添加一些描述