alexrainman / CarouselView

CarouselView control for Xamarin Forms
MIT License
436 stars 176 forks source link

Issue after the installation of 'Xamarin.Android.Support.Core.UI' #82

Closed TohWei closed 7 years ago

TohWei commented 7 years ago

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: java.lang.IllegalArgumentException: already added : Landroid/support/v4/view/VelocityTrackerCompat; (TestCarouselView2.Droid)

I started with the installation of CarouselView.FormsPlugin. I received a complain about the needs to install this after the 1st build: Xamarin.Android.Support.Core.UI. However, after the this package (Xamarin.Android.Support.Core.UI), I hit the above error message.

May I know how to resolve this?

kikolopes90 commented 7 years ago

Bug: Update v3.0.2 Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Xamarin.Android.Support.Core.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?

I came back to update v3.0.1 and it works.

alexrainman commented 7 years ago

The latest version of the plugin requires Xamarin.Android.Support.v4 version 24.2.1

You can manually update.

alexrainman commented 7 years ago

If my work is helping you, please help me back: https://xamarinhq.wufoo.com/forms/nominate-a-xamarin-mvp/

This is what i have done that is community visible:

ctrexler commented 7 years ago

Thank you for writing this CarouselView! However, when I try to update Xamarin.Android.Support.[anything] I get the same error that you're saying I need to update to prevent from occurring. Any ideas?

EDIT: I figured out, I believe, that in order to upgrade to Support v24.2.1 I need to be using Monodroid 7, so I'm looking into this to figure out how to switch.

alexrainman commented 7 years ago

The latest version uses latest Xamarin.Android.Support 25, so you can update to latest one.

ctrexler commented 7 years ago

Yeah it turns out I just didn't have the A7 sdk installed that would allow me to upgrade to Support 25. I did all that and re-added your assembly and it's working very well, thank you for this! 😄

One suggestion: Is there any reason you have the default height of the carousel as zero? I thought there was another issue when nothing showed up, but when I changed the background color and height just to see what might happen, I could suddenly see the carousel and the contents I set up for it. The suggestion would be to change it to a default of 200 or something.

esritines commented 7 years ago

I have the lastest SDK version and still can not update xamarin.android.support, what is going on?