-
Notifications
You must be signed in to change notification settings - Fork 691
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
Crashlytics for Android generates conflicting provider #444
Comments
After some investigation it looks like the original This second manifest file is getting picked up by xamarin.android during the build process (this is evidenced by the fact that we see two Given that Xamarin.Android rewrites these placeholders before sending to aapt anyway, I think it probably should be ignoring manifests found in the In the meantime we can probably patch Xamarin.Build.Download to also drop these entries when embedding the .aar in the .dll at build time. |
This issue was moved to dotnet/android#2141 |
@deckerst can you please try the prerelease version of Xamarin.Build.Downoad (0.4.12-preview) which should ignore the duplicate (and incorrect) provider. https://www.nuget.org/packages/Xamarin.Build.Download/0.4.12-preview |
Thanks for the quick release, but I've tried it and the final apk manifest still has the incorrect provider:
I cleaned everything (bin/obj/packages) and I double-checked the XBD package version was right. Was the fix working for you? |
Forgot one step. You'll need to wipe out your local nuget cache as well as any local packages folders. You need to get a fresh install of the nuget packages which haven't yet been altered by Xamarin.build.download since it skips the step this fix is in if it's already been done previously. |
I wiped the following and retried, to no avail (mac environment):
|
@deckerst apologies, there was still a bug in that release. 0.4.12-preview3 is now available and is working well locally for me: https://www.nuget.org/packages/Xamarin.Build.Download/0.4.12-preview3 Please:
|
I finally got this to work after some pain clearing and restoring the nuget cache. The steps I followed were:
It was at this point that I started getting errors at the line of code that initializes Fabric with Crashlytics |
still able to reproduce on VS Mac |
I'm still getting the issue where it generates the duplicate providers where one is correct but a second one with
|
@Redth Still happening this issue with the XBD 0.9.0 version. Can't able to install the app.
|
I have made a discovery to get around this issue here: |
@hemantbeast @Dooks123 this issue should be resolved by: Can you file a new issue here: https://github.com/xamarin/xamarin-android/issues Include a diagnostic MSBuild log or a sample project we can try, thanks! |
Crashlytics aar manifest relies on
${applicationId}
for its providers. One of them is misinterpreted and replaced bydollar_openBracket_applicationId_closeBracket
in the final app manifest:As this is a static string it is not unique to the app, so it conflicts with any other app that also uses Crashlytics. Installation of the second app will then fail with
INSTALL_FAILED_CONFLICTING_PROVIDER
. This is a blocker for us as we developed several Xamarin apps and we urgently need to replace Firebase Crash Reporting by Crashlytics in all of them.The text was updated successfully, but these errors were encountered: