I'm following the google Android Studio first android app tutorial. But I get 3 weird errors now when trying to add a search bar to my app.
I'm here right now and I added the XML code just like the tutorial.
http://developer.android.com/training/basics/actionbar/adding-buttons.html
The errors I get:
Error:(5, 23) No resource found that matches the given name (at 'icon' with value '@drawable/ic_action_search').
Error:(6, 24) No resource found that matches the given name (at 'title' with value '@string/action_search').
At android:showAsAction="ifRoom" I'm getting the weird error:
Excecution failed for task ':app:procesDebugResources'.
This is my XML code:
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" tools:context=".MainActivity">
<item android:id="@+id/action_search"
android:icon="@drawable/ic_action_search"
android:title="@string/action_search"
android:showAsAction="ifRoom" />
<item android:id="@+id/action_settings" android:title="@string/action_settings"
android:orderInCategory="100" app:showAsAction="never" />
</menu>
Whats wrong in this code?
Thanks for reading/helping!