Android manifest merger fails for receivers with same name but different content -


i'm having problem manifest merger duplicated receivers content different. use following receivers different api levels, had no issue far until merger. build fails due merger says

element receiver#.receivers.updatereceiver duplicated element declared @ androidmanifest.xml:124:9 

i don't want create receiver , continue schema. there way disable merger situations or merge receivers in 1 option of enabling action different intent?

<receiver     android:name=".receivers.updatereceiver"     android:enabled="@bool/is_api_below_12">     <intent-filter>         <action android:name="android.intent.action.package_replaced" />         <data android:scheme="package" />     </intent-filter> </receiver>  <receiver     android:name=".receivers.updatereceiver"     android:enabled="@bool/is_api_12_and_above">     <intent-filter>         <action android:name="android.intent.action.my_package_replaced" />     </intent-filter> </receiver> 

perhaps can set

android {    useoldmanifestmerger true } 

in build.gradle file , worked fine in project can see more details here


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -