Hello I am developing 2 modules A and B and B depends of A.
The last two have a Application class, for get the context staticaly.
And in the two modules have them manifest.
Module A manifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="apps.com.a">
<application android:name=".AA"/>
</manifest>
Module B manifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="apps.com.b">
<application
android:name=".BApp">
</application>
</manifest>
When I try execute the Junit, I get the following error:
Manifest merger failed : Attribute application@name value=(apps.b.BApp) from [__tested_artifact__::blibrary] AndroidManifest.xml:14:18-72
is also present at [:alibrary] AndroidManifest.xml:11:18-78 value=(apps.com.a.AApplication).
Suggestion: add 'tools:replace="android:name"' to <application> element at manifestMerger2718201306699938665.xml:7:5-9:19 to override.
Any idea of how solve this, i will put 'tools:replace="android:name"' is correct, or can be errors?