Chaintech-Network / CMPToast

Apache License 2.0
57 stars 3 forks source link

Manifest Merger Failed #2

Open VISHNUONE8 opened 2 months ago

VISHNUONE8 commented 2 months ago

Manifest merger failed : Attribute application@name value=(com.andrayudu.andhradairykmp.AppInstance) from AndroidManifest.xml:6:9-36 is also present at [network.chaintech:cmptoast-android:1.0.0] AndroidManifest.xml:8:9-60 value=(multiplatform.network.cmptoast.MyApp). Suggestion: add 'tools:replace="android:name"' to element at AndroidManifest.xml:5:5-27:19 to override.

Issue with Koin DI and CMPToast dependency

onstonboy commented 2 months ago

I faced the same issue and here is the temporary fix for that during wait for official fix.

For Application error, add: tools:replace="android:name" into your Android manifest at level. For Context error, add: multiplatform.network.cmptoast.AppContext.apply { set(applicationContext) } in to your Application class

Hope this help.

mayur-ctn commented 2 months ago

@onstonboy @VISHNUONE8 Please try version 1.0.1

sobaya-0141 commented 2 months ago

The same error occurred even with version 1.0.1 I resolved it by adding tools:replace="android:allowBackup" to the manifest.