我正在尝试使用Android Studio将searchView添加到我的Android应用程序中
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"
/>
searchable.xml 文件应在 res/xml 文件夹上,并且看起来应该像这样:
<?xml version="1.0" encoding="utf-8"?>
<searchable xmlns:android="http://schemas.android.com/apk/res/android"
android:hint="@string/hint_search"
android:label="@string/search_label" >
</searchable>