Most of the time when you cloned a Unity project which has firebase notification integrated, No matter what bundle ID you changed for the newly cloned project, you'll always received resolve conflicts error.
Mainly because whenever you import firebase SDK and make jar resolve, google play services repackage some of the .aar files with the old bundle ID unless you make the force resolve again!
The first options would be
1 - Delete all the .aar files in the Plugins->Android folder
2 - Go to Assets->PlayService resolver->Android->Force resolve and the required .aar files will be rebuilt using the new bundle ID
But for some reason if you don't want to use force resolve options, you can manually modify some of the aar file and rebuild the apk again.
1 - Look for com.google.firebase.firebase-common-12.0.1.aar and com.google.firebase.firebase-iid-12.0.1.aar file inside Android plugins folder
2 - change .aar file to .zip file and extract them to seperate folders
3 - open each folder and inside that folder, edit AndroidManifest.xml file by changing to your new bundle ID.
4 - zip them again and change the extension to .aar file
5 - Replace these .aar file to your old .aar file in the android plugins folder
6 - Done and rebuild
Mainly because whenever you import firebase SDK and make jar resolve, google play services repackage some of the .aar files with the old bundle ID unless you make the force resolve again!
The first options would be
1 - Delete all the .aar files in the Plugins->Android folder
2 - Go to Assets->PlayService resolver->Android->Force resolve and the required .aar files will be rebuilt using the new bundle ID
But for some reason if you don't want to use force resolve options, you can manually modify some of the aar file and rebuild the apk again.
1 - Look for com.google.firebase.firebase-common-12.0.1.aar and com.google.firebase.firebase-iid-12.0.1.aar file inside Android plugins folder
2 - change .aar file to .zip file and extract them to seperate folders
3 - open each folder and inside that folder, edit AndroidManifest.xml file by changing to your new bundle ID.
4 - zip them again and change the extension to .aar file
5 - Replace these .aar file to your old .aar file in the android plugins folder
6 - Done and rebuild
Comments
Post a Comment