Chaintech-Network / CMPToast

Apache License 2.0
37 stars 2 forks source link

Manifest Merger Failed #2

Open VISHNUONE8 opened 3 weeks ago

VISHNUONE8 commented 3 weeks 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 weeks 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 1 week ago

@onstonboy @VISHNUONE8 Please try version 1.0.1