当我想插入以下meta标签时:
<meta-data android:name="com.android.systemui.action_assist_icon" android:resource="@mipmap/ic_launcher" />
我收到错误消息:
Resources referenced from the manifest cannot vary by configuration (except for version qualifiers, e.g. -v21.) Found variation in hdpi, mdpi, xhdpi, xxhdpi, xxxhdpi
我怎样才能解决这个问题?
将AndroidManifest.xml中的资源变化检测为错误。
可以这样忽略:
<?xml version="1.0" encoding="utf-8"?> <manifest ... xmlns:tools="http://schemas.android.com/tools" ...> ... <meta-data android:name="com.android.systemui.action_assist_icon" android:resource="@mipmap/ic_launcher" tools:ignore="ManifestResource" /> ... </manifest>