Following a tutorial and yet getting an error entering data into AndroidManifest.xml. Code entered was
<meta-data android:name="com.google.android.wearable.watchface.preview" android:resource="@mipmap/ic_launcher" />
Error was showing on ‘@mipmap/ic_launcher’.
It appears to be a bug and the solution was to create a file called lint.xml and to place it in the app directory. I couldn’t find a way to do this in Android Studio so closed and created it with notepad. Contents of file:
<?xml version="1.0" encoding="UTF-8"?> <lint> <issue id="ManifestResource" severity="ignore" /> </lint>
Thanks for this blog entry! I had the same bug when using the new API 25 android:roundIcon. I solved it by adding tools:ignore=”ManifestResource” to the -Tag.
Yours may be the nicer solution, Bernd.