2

The guide for integrating OneSignal with a Xamarin.Forms app seams really straight forward. But... After finishing all the setups, I got this error when trying to build my Android project:

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: java.lang.IllegalArgumentException: already added :  Lcom/google/android/gms/internal/zzlv; (MyProject.Droid)

I have already found similar issues:

But I do not know how to apply the solutions to a Xamarin.Forms Android project.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Joilson Cisne
  • 187
  • 10

1 Answers1

1

The already added : Lcom/google/android/gms/internal error means you have 2 copies of the Google Play services library in your project. The OneSignal SDK already includes the Google Play services dependencies. https://www.nuget.org/packages/Com.OneSignal/

Check that you don't have your own copy under Components or Packages in your solution.

jkasten
  • 3,899
  • 3
  • 32
  • 51