Tools: replace not replacing in Android manifest -
i using gradle project many different library dependencies , using new manifest merger. in <application />
tag have set such:
<application tools:replace="android:icon, android:label, android:theme, android:name" android:name="com.example.myapp.myapplcation" android:allowbackup="true" android:icon="@drawable/ic_launcher" android:label="@string/application_name" android:logo="@drawable/logo_ab" android:theme="@style/apptheme" > .... </application>
yet receiving error:
/android/myapp/app/src/main/androidmanifest.xml:29:9 error: attribute application@icon value=(@drawable/ic_launcher) androidmanifest.xml:29:9 present @ {library name} value=(@drawable/app_icon) suggestion: add 'tools:replace="android:icon"' <application> element @ androidmanifest.xml:26:5 override /android/myapp/app/src/main/androidmanifest.xml:30:9 error: attribute application@label value=(@string/application_name) androidmanifest.xml:30:9 present @ {library name} value=(@string/app_name) suggestion: add 'tools:replace="android:label"' <application> element @ androidmanifest.xml:26:5 override /android/myapp/app/src/main/androidmanifest.xml:27:9 error: attribute application@name value=(com.example.myapp.myapplication) androidmanifest.xml:27:9 present @ {another library} suggestion: add 'tools:replace="android:name"' <application> element @ androidmanifest.xml:26:5 override /android/myapp/app/src/main/androidmanifest.xml:32:9 error: attribute application@theme value=(@style/apptheme) androidmanifest.xml:32:9 present @ {library name} value=(@style/apptheme) suggestion: add 'tools:replace="android:theme"' <application> element @ androidmanifest.xml:26:5 override
declare manifest header this
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.yourpackage" xmlns:tools="http://schemas.android.com/tools">
than add application tag following attribute:
<application tools:replace="icon, label" ../>
for example need replace icon , label. luck!
Comments
Post a Comment