【发布时间】:2015-05-11 11:57:28
【问题描述】:
我正在尝试使用 android studio 将 searchview 添加到我的 android 应用程序,但是当我第一次添加 searchable.xml 配置文件时出现此错误
the fallowing classes could not be found: -searchable (fix build path,edit xml) and layout missing attributes
当我构建项目时出现此错误:
-no resource found that matches the given name(at 'resource' with value @searchable.xml)
-execution failed for task ':app.processDebugProcess'
有什么帮助吗??
enter code here<?xml version="1.0" encoding="utf-8"?>
android:label="@string/search_label"
android:hint="@string/hint_search"
/>
【问题讨论】:
-
labelname hinttext 保留在 string.xml 文件中 -
已经写在 sting.xml 文件上
标签: android xml searchview