Okay, so I solved this problem by deleting my project and started form clean start. After this everything works fine.
Xamarin forms - multiple errors when trying to build
Hello,
I have been trying to make an app according to the course I bought. I had no errors but when I tried to deploy it, serveral errors has occured.
I know it is a mess, but I simply can´t find any solution fot this problem....
This are the errors that I receive:
CS1503 Argument 1: cannot convert from 'Objednajto.Droid.MainActivity' to 'Android.App.Activity'
CS1503 Argument 1: cannot convert from 'Objednajto.Droid.MainActivity' to 'Android.Content.Context'
CS0117 'FormsAppCompatActivity' does not contain a definition for 'OnRequestPermissionsResult'
CS0115 'MainActivity.OnRequestPermissionsResult(int, string[], Permission[])': no suitable method found to override
CS0012 The type 'FragmentActivity' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.AndroidX.Fragment, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
I tried:
Instaling "Xamarin.AndroidX.Fragment"
Downgrading "Xamarin.AndroidX.Fragment"
Use Quick action to install "Xamarin.AndroidX.Fragment", but nothing happened