1
在我的Manifest.xml,我得到以下錯誤:清單中引用的資源不能因配置而異?
Resources referenced from the manifest cannot vary by configuration (except for version qualifiers, e.g. -v21.) Found variation in hdpi, hdpi-v11, mdpi, mdpi-v11, xhdpi, xhdpi-v11, xxhdpi, xxhdpi-v11, xxxhdpi, xxxhdpi-v11
這似乎是抱怨兩種資源:
<meta-data
android:name="com.parse.push.notification_icon"
android:resource="@drawable/ic_stat_ic_no_notifications" />
和
<meta-data
android:name="com.yitter.android.notification_icon"
android:resource="@drawable/ic_launcher" />
我應該把這兩個我的no-dpi文件夾中的圖像?它似乎在抱怨每個資源組都有不同的事實。我該怎麼辦?
我感覺像tools:ignore="ManifestResource"
(請看這裏:Resources referenced from the manifest cannot vary by configuration)實際上並沒有解決問題,如果有的話,只是帶幫助它。
更新:
而且事實上會導致生成錯誤...
Error:Execution failed for task ':app:processDebugManifest'.
> D:\android\app\src\main\AndroidManifest.xml:77:9-84:20: Error: Invalid instruction 'targetApi', valid instructions are : REMOVE,REPLACE,STRICT