FFImageLoading icon indicating copy to clipboard operation
FFImageLoading copied to clipboard

On Xamarin.Forms after update to pre version:2.2.0.5-pre2 Android project fail to build

Open lecnierfreeman opened this issue 10 years ago • 7 comments

After updating Xamarin.Forms to the latest prerelease version IOS project builds but Android doesn't an all error are related to FFImageLoading library. Maybe the cause is because in Xamarin.Forms they update the dependencies to Xamarin.Android.Support.(v4, v7, Design) to 23.1.1.1 and there they changed things ? These are 39 errors if Xamarin.FFImageLoading and Xamarin.FFImageLoading.Forms, version 2.1.0-alpha1 are included in project for Android:

'Resource.Attribute' does not contain a definition for 'mediaRouteSettingsDrawable' 257 'Resource.Dimension' does not contain a definition for 'design_tab_min_width' 538 'Resource.Dimension' does not contain a definition for 'dialog_fixed_height_major' 539 'Resource.Dimension' does not contain a definition for 'dialog_fixed_height_minor' 540 'Resource.Dimension' does not contain a definition for 'dialog_fixed_width_major' 541 'Resource.Dimension' does not contain a definition for 'dialog_fixed_width_minor' 542 'Resource.Dimension' does not contain a definition for 'mr_media_route_controller_art_max_height'
'Resource.Drawable' does not contain a definition for 'ic_setting_dark' 636 'Resource.Drawable' does not contain a definition for 'ic_setting_light' 637 'Resource.Drawable' does not contain a definition for 'mr_ic_settings_dark' 648 'Resource.Drawable' does not contain a definition for 'mr_ic_settings_light' 649 'Resource.Id' does not contain a definition for 'art' 669 'Resource.Id' does not contain a definition for 'buttons' 673 'Resource.Id' does not contain a definition for 'default_control_frame' 688 'Resource.Id' does not contain a definition for 'disconnect' 690 'Resource.Id' does not contain a definition for 'media_route_control_frame' 715 'Resource.Id' does not contain a definition for 'media_route_list' 716 'Resource.Id' does not contain a definition for 'media_route_volume_layout' 717 'Resource.Id' does not contain a definition for 'media_route_volume_slider' 718 'Resource.Id' does not contain a definition for 'play_pause' 728 'Resource.Id' does not contain a definition for 'route_name' 733 'Resource.Id' does not contain a definition for 'settings' 749 'Resource.Id' does not contain a definition for 'stop' 762 'Resource.Id' does not contain a definition for 'subtitle' 764 'Resource.Id' does not contain a definition for 'title_bar' 771 'Resource.Layout' does not contain a definition for 'mr_media_route_chooser_dialog' 819 'Resource.Layout' does not contain a definition for 'mr_media_route_controller_material_dialog_b'
'Resource.Layout' does not contain a definition for 'mr_media_route_list_item' 821 'Resource.String' does not contain a definition for 'mr_media_route_button_content_description'
'Resource.String' does not contain a definition for 'mr_media_route_chooser_searching'
'Resource.String' does not contain a definition for 'mr_media_route_chooser_title' 857 'Resource.String' does not contain a definition for 'mr_media_route_controller_disconnect'
'Resource.String' does not contain a definition for 'mr_media_route_controller_no_info_available'
'Resource.String' does not contain a definition for 'mr_media_route_controller_pause' 860 'Resource.String' does not contain a definition for 'mr_media_route_controller_play' 861 'Resource.String' does not contain a definition for 'mr_media_route_controller_settings_description'
'Resource.String' does not contain a definition for 'mr_media_route_controller_stop' 863 'Resource.Style' does not contain a definition for 'RtlOverlay_Widget_AppCompat_ActionButton_Overflow'
'Resource.Styleable' does not contain a definition for 'FloatingActionButton_android_background'

lecnierfreeman avatar Apr 14 '16 14:04 lecnierfreeman

@lecnierfreeman Hi, it's not FFImageLoading issue. Read more here: https://forums.xamarin.com/discussion/63983/xamarin-forms-2-2-0-pre2-released

Important notes When upgrading Xamarin.Forms take care not to simply "update all" as that will update the Xamarin.Android.Support packages to an incompatible version. More info here: https://developer.xamarin.com/guides/xamarin-forms/troubleshooting/

You must use correct version of support packages.

daniel-luberda avatar Apr 16 '16 07:04 daniel-luberda

so we wait that FFImageLoading library support 23.1.1.1 version?

When i try install Xamarin.FFImageLoading.Forms after update Xamarin.Forms to pre version:2.2.0.5-pre2 i have this: Adding Xamarin.FFImageLoading.Forms... Attempting to resolve dependency 'Xamarin.FFImageLoading (≥ 2.0.7.1)'. Attempting to resolve dependency 'Xamarin.Forms (≥ 1.4.4.6392)'. Attempting to resolve dependency 'Xamarin.Android.Support.v4 (= 23.0.1.3)'. Attempting to resolve dependency 'Xamarin.Android.Support.Design (= 23.0.1.3)'. Attempting to resolve dependency 'Xamarin.Android.Support.v7.AppCompat (≥ 23.0.1.3)'. Attempting to resolve dependency 'Xamarin.Android.Support.v4 (= 23.1.1.1)'. Attempting to resolve dependency 'Xamarin.Android.Support.Design (= 23.1.1.1)'. Updating 'Xamarin.Android.Support.v4 23.0.1.3' to 'Xamarin.Android.Support.v4 23.1.1.1' failed. Unable to find a version of 'Xamarin.Forms' that is compatible with 'Xamarin.Android.Support.v4 23.1.1.1'.

vsarnataro avatar Apr 16 '16 11:04 vsarnataro

@vsarnataro It's not FFImageLoading issue. It applies to prerelease version of Forms nuget package. Just be sure your support packages are correct version.

daniel-luberda avatar Apr 16 '16 15:04 daniel-luberda

@daniel-luberda Hi,

Sorry to say that in indeed it's a FFImageLoading issue, but I think is an easy one, since in this new pre-release version of Xamarin.Forms they moved to Xamarin.Android.Support.v4(and Friends) to version 23.1.1.1 all you need to do is just re-build the nugget packages with that version.

For confirming that it's a FFImageLoading I tried removing all packages from my project, install lates pre-release of Xamarin.Forms 2.2.0.5-pre2, install again all packages that I was using except FFImageLoading and try to build, and It succeeded, then Add FFImageLoading and try to build, it failed with the errors I posted before. After that I created a new project, installed Xamarin.Forms 2.2.0.5-pre2, build succeeded, install FFImageLoading and Failed again. I was reading in the same post you point it out and people says they are having this issues with 3rd party libs that need to update their Xamarin.Android.Support.v4(and Friends) to version 23.1.1.1

Thank You

lecnierfreeman avatar Apr 18 '16 17:04 lecnierfreeman

@daniel-luberda Should we do anything?

molinch avatar Apr 29 '16 09:04 molinch

@molinch It should be fixed in 2.1.0-alpha2

daniel-luberda avatar Apr 29 '16 14:04 daniel-luberda

FFImageLoading 2.1.0-alpha2 nuget released which brings this fix. If you have any problems, please write details here. Many thanks.

molinch avatar Apr 29 '16 14:04 molinch