Closed tagathangelou closed 3 years ago
Anybody with a solution to this?
Onesignal contacted me and told me to install Xamarin.AndroidX.Migration to my project should solve this issue in the short term while will work on a solution.
That solution does not work for me and the problem remains exactly the same.
@tagathangelou Facing the same issue. Even I tried the solution which you have mentioned but still facing the same issue.
apart from onesignal, I am not using firebase, but i have no problems using onesignal at the moment (even alongside androidx) with the following dependencies: (but maybe keeping your firebase packages as they are may will conflicts with some of these packages ?)
<PackageReference Include="Xamarin.Essentials" Version="1.6.1" />
<PackageReference Include="Xamarin.Forms" Version="5.0.0.2012" />
<PackageReference Include="Xamarin.GooglePlayServices.Base" Version="71.1610.1" />
<PackageReference Include="Xamarin.GooglePlayServices.Tasks" Version="71.1601.1" />
<PackageReference Include="Xamarin.Google.Android.Material" Version="1.3.0.1" />
<PackageReference Include="Xamarin.AndroidX.AppCompat.Resources" Version="1.1.0.1" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData" Version="2.3.0.1" />
<PackageReference Include="Xamarin.AndroidX.Browser" Version="1.3.0.5" />
<PackageReference Include="Xamarin.AndroidX.Legacy.Support.V4" Version="1.0.0.7" />
<PackageReference Include="Xamarin.Android.Support.CustomTabs" Version="28.0.0.3" />
<PackageReference Include="Xamarin.Android.Support.Annotations" Version="28.0.0.3" />
<PackageReference Include="Xamarin.Android.Support.Compat" Version="28.0.0.3" />
@jkasten2 I have applied the solution mentioned in below URL and it works fine now. https://github.com/OneSignal/OneSignal-Xamarin-SDK/issues/228#issuecomment-813979825
Thanks
We just released Com.OneSignal 3.10.5 with dependency changes to resolve the AndroidX compatibility. Simply upgrade to this version and rebuild your project.
Thanks for releasing the solution with the new version 3.10.5 - i already rebuild and it connects smoothly retrieving the device player ID
Description:
My VS is fully updated, all nuget packages are fully updated to the most stable version and once i install the ONESIGNAL nuget package i get the following error when i try to build my solution:
Can not resolve reference: Xamarin.Android.Support.Collections, referenced by Xamarin.GooglePlayServices.Base. Please add a NuGet package or assembly reference for Xamarin.Android.Support.Collections, or remove the reference to Xamarin.GooglePlayServices.Base. Environment 1.My Android version Target framework is 10.0
Steps to Reproduce Issue:
My INSTALLED PACKAGES ARE:![installed nugetpackages](https://user-images.githubusercontent.com/6680836/113124618-5fde2400-921e-11eb-82ca-a68811fe3bcf.JPG)
My Visual Studio version: