question

DuncanCole-4582 avatar image
0 Votes"
DuncanCole-4582 asked DanielMillington-2364 published

Error when updating to Xamarin Forms 5

I've got a project that was on 4.8 and I thought I'd update in 5.0 today but after fixing a few things (getting the Community Toolkit for the Expander for example) and building it crashes on startup. Specifically I'm getting this error:

Method not found: bool Xamarin.Forms.Internals.ResourceLoader.get_IsEnabled()'

I've done a clean and build as well as a complete delete of the bin/obj files.

dotnet-xamarin
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @DuncanCole-4582 , please make sure that Android and iOS have same latest version as your forms project or shared project.

2 Votes 2 ·

This solved my problem. It works after I updated the reference of Xamarin library in the Android and iOS project. Thanks.

2 Votes 2 ·

Bang on, didn't realise that I'd disabled the iOS app while I was without my Mac. Many thanks for your help.

0 Votes 0 ·

Yesterday I have had the same problem in a project I have opened and ported to XF5. Not Solved.
Today I have ported anothed prj successfully...

Maybe you can try to delete obj and bin directories, restart VS (I see a new version of VS2019....)

0 Votes 0 ·

1 Answer

Nort-0044 avatar image
0 Votes"
Nort-0044 answered

I don't know how it works, but i just changed Target Framework in properties my Android project.
https://docs.microsoft.com/en-us/xamarin/android/app-fundamentals/android-api-levels

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.