Basically, I want my saved data to reset when users uninstall the game, however at the moment it’s grabbing a backup it has whenever I do so.
I’ve tried to put it here. But it doesn’t seem to work.
This is in my Android manifest from Plugins/Android/GoogleMobileAdsPlugin/
<?xml version="1.0" encoding="utf-8"?>
<!--
This Google Mobile Ads plugin library manifest will get merged with your
application's manifest, adding the necessary activity and permissions
required for displaying ads.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.unity.ads"
android:versionName="20"
android:versionCode="20">
<uses-sdk android:minSdkVersion="14"
android:targetSdkVersion="19" />
<application>
<uses-library android:required="false" android:name="org.apache.http.legacy"/>
<!-- Your AdMob App ID will look similar to this sample ID: -->
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value=""
android:allowBackup="false"/>
</application>
<uses-permission android:name="com.android.vending.BILLING" />
</manifest>
The allowBackup attribute is an attribute of the “application” node. You added it to the sub node meta-data. Just read the documentation
Still need assistance with this.
Here are some more details
Error window -
Gradle Error: Colliding Attributes.
The attribute application@allowBackup=true in :GoogleMobileAdsPlugin collides with another value
(see console for details)
The console then goes on to tell me that I should try adding tools:replace=“android:allowBackup” to the manifest.
I have done so, it’s in the correct spot, so is the link to the tools.
I don’t understand how it’s saying :GoogleMobileAdsPlugin collides with another value Because the manifest I am editing is from Plugins/Android/GoogleMobileAdsPlugin
I have checked every other manifest file that is inside my project and the only one which shows android:allowBackup=“true” which is what i want to replace with false, is in the final manifest that gets created after a build.
So the 2 questions are, why isn’t the tools:replace working and/or what is setting the value to true that isn’t coming from a manifest file.
Have found google results regarding all of this, none of which relate to unity and only for Android developers directly.