Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Reference to Lottie.Android #13

Closed
JPetronilhoNunes opened this issue Oct 18, 2018 · 4 comments
Closed

Reference to Lottie.Android #13

JPetronilhoNunes opened this issue Oct 18, 2018 · 4 comments

Comments

@JPetronilhoNunes
Copy link

Describe the bug
When trying to compile project an error appear:
Severity Code Description Project File Line Suppression State
Error Can not resolve reference: Lottie.Android, referenced by XF.Material.Droid. Please add a NuGet package or assembly reference for Lottie.Android, or remove the reference to XF.Material.Droid.
I already referenced Com.Airbnb.Xamarin.Forms.Lottie and the error constinues.

To Reproduce
Compile project with XF-Material-Library added

capturar

Desktop (please complete the following information):

  • OS: android xamarin forms
@contrix09
Copy link

Hi, maybe there are conflicting package referenced by other nuget packages that is lower than the version of the references of XF.Material library?

Is the error above from the nuget package manager?

Can you also provide the versions of each nuget packages that you used in the Android project, so I can cross-reference them and see if there are any conflicting references.

@JPetronilhoNunes
Copy link
Author

JPetronilhoNunes commented Oct 18, 2018

Hi, maybe there are conflicting package referenced by other nuget packages that is lower than the version of the references of XF.Material library?

Is the error above from the nuget package manager?

Can you also provide the versions of each nuget packages that you used in the Android project, so I can cross-reference them and see if there are any conflicting references.

Many thanks for your reply, here are all references and versions from my android.csproj file:

Acr.UserDialogs, v7.0.1
Com.Airbnb.Xamarin.Forms.Lottie, v2.6.3
Newtonsoft.Json, v11.0.2
Rg.Plugins.Popup, v1.1.4.168
sqlite-net-pcl, v1.5.231
Xam.Plugin.Connectivity, v3.2.0
Xam.Plugin.DeviceInfo, v4.0.0.13
Xamarin.Forms Version="3.2.0.871581"
Xamarin.Android.Support.Design Version="25.4.0.2"
Xamarin.Android.Support.v7.AppCompat Version="25.4.0.2" />
Xamarin.Android.Support.v4 Version="25.4.0.2" />
Xamarin.Android.Support.v7.CardView Version="25.4.0.2" />
Xamarin.Android.Support.v7.MediaRouter Version="25.4.0.2" />
XF.Material, v1.1.1

@contrix09
Copy link

try to update your Xamarin.Android.Support.* packages to 27.0.2.* and see if it fixes the issue. Com.Airbnb.Xamarin.Forms.Lottie version 2.5.4 or above requires Xamarin.Android.Support.* at least 27.0.2.*. It turns out I have inconsistencies to the required referenced Nuget packages in my nuspec file.

@JPetronilhoNunes
Copy link
Author

Many thanks, that was it! I can compile now.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant