Search Unity

Question Problem merging Android manifest backup rules

Discussion in 'Android' started by Delcasda, May 27, 2021.

  1. Delcasda

    Delcasda

    Joined:
    Mar 3, 2013
    Posts:
    27
    I am trying to implement Appodeal and AppsFlyer SDKs into my mobile game but both contain Android libraries with specific backup rules on theirs AndroidManifest. When building, Unity fails with the following error:


    I tried the 2 solutions presented here https://github.com/AppsFlyerSDK/appsflyer-android-sdk/issues/9
    but looks like the merger try to replace my rules too early so it says "Warning: application@android:fullBackupContent was tagged at AndroidManifest.xml:4 to replace other declarations but no other declaration present" on the main manifest

    and on the plugin manifest

    and then both fail with:

    this is the modified manifest of solution two

    and the manually merged rules


    This error is documented on both sites
    https://support.appsflyer.com/hc/en...ation-for-developers#integration-backup-rules
    and
    https://support.vungle.com/hc/en-us...les-xml-between-Vungle-and-AppsFlyer-Android-
    but the solution don't work
     
    HD43 likes this.
  2. Delcasda

    Delcasda

    Joined:
    Mar 3, 2013
    Posts:
    27
    Ok, so I finally solved by setting the replace rule on the custom main manifest on Unity rather than on the library manifest. The trick is that the xml file still need to be copied into any android plugin library
     
    HD43 likes this.
  3. HD43

    HD43

    Joined:
    Jul 10, 2018
    Posts:
    8
    hello,i have same issue.Can you tell me in more detail how to fix this?Thanks