-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android Manifest merge conflict (backup rules) #9
Comments
|
Did you find any solution? I have this problem too |
This is working, thank you |
but it takes forever while building |
I'm having a similar issue 😢
In the main manifest |
I have the same problem. I found below: fullBackupContent is not only used by AppsFlyer. |
I have the same problem. Vungle is also using this and I can't tell how to merge them in Unity when all of this is auto-generated stuff. |
AppsFlyer support only answers manual merges, no matter how many times we explain it, it doesn't fix the issue... |
They don't seem to present anything other than manually merging AndroidManifext.xml. tools: replace = "android: fullBackupContent" Is required: They said: |
|
Can anybody clarify, in which manifest file we need to add this? I cannot find appsflyer's manifest file. |
Hi everyone! We see that this issue is indeed confusing and would like to elaborate a bit extra on this matter. TL;DR
Some background: Since AppsFlyer uses AAR to distribute the library, together with the library jar we package AndroidManifest in which we specify backup rules that are important for our SDK to function properly. Unfortunately, Android as of today doesn't have a solid merge mechanism so in case you have 2 libraries with conflicting values for the same attribute in AndroidManifest you get different kinds of merging conflict errors. The only solution we can see for now without harming other SDKs is to merge such conflicts manually Here you can find Vungle backup rules - https://support.vungle.com/hc/en-us/articles/360047780372#vungle-exclusion-rules-0-11 As a result you should have this file with merged rules:
|
Im getting the same issue with Instabug - does anyone have any idea what merge rules may look like for that? EDIT - answer is here: |
Do you guys support Android 12 and 13? I mean, you should probably include |
Just sharing my case here hoping to help anyone in the future that is trying to TURN OFF the backup I am using the Flutter SDK and it gives me the same problem, since the fix is inside If you have some doubts on where to add the extra configurations inside the Important points:
so your first <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.your.collest.app.bundle.id"
xmlns:tools="http://schemas.android.com/tools"
>
so your <application
tools:replace="android:fullBackupContent"
android:fullBackupContent="false"
android:allowBackup="false"
android:label="COOLEST APP LABEL"
android:name="${applicationName}"
android:networkSecurityConfig="@xml/network_security_config"
android:requestLegacyExternalStorage="true"
android:icon="@mipmap/launcher_icon"
> your file may have different option, don't copy and paste it to your project directly The final file looks like this <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.your.collest.app.bundle.id"
xmlns:tools="http://schemas.android.com/tools"
>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<application
tools:replace="android:fullBackupContent"
android:fullBackupContent="false"
android:allowBackup="false"
android:label="COOLEST APP LABEL"
android:name="${applicationName}"
android:networkSecurityConfig="@xml/network_security_config"
android:requestLegacyExternalStorage="true"
android:icon="@mipmap/launcher_icon"
>
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
</manifest>
again... don't just copy and paste this code, its an example and you configurations are probably different. after do that I was able to build the application once again =) Hope it helps =) |
* (PC-30240) feat(appsflyer): Update lib * (PC-30240) chore(appsflyer): Update mocks * (PC-30240) fix(android): Fix debug build AppsFlyerSDK/appsflyer-android-sdk#9 (comment) * (PC-30240) feat(useTrackingConsent): Always call callback * (PC-30240) refactor(ATT): Remove unnecessary hook * (PC-30240) refactor(ATT): Rename and test function * (PC-30240) feat(appsflyer): Store user consent
tools:replace specified at line:20 for attribute android:fullBackupContent, but no new value specified
The text was updated successfully, but these errors were encountered: