[Xamarin Error]:System.MissingMethodException: Method 'Android.Support.V4.Widget.DrawerLayout.AddDrawerListener' not found.
After I switched my Xamarin Forms app from Normal Form Activity to FormsAppCompatActivity. This can provide more function in Material Design, such as TextInputLayout. But I got this error:System.MissingMethodException: Method 'Android.Support.V4.Widget.DrawerLayout.AddDrawerListener' not found. I found the problem is from the libraries. After I updated the latest Xamarin Forms Library in Android Project. That works!
I got an error when I built my application. The error said 'No xmlns declaration for prefix "local". Because I used the xaml, I found the compiler did not check the error in xaml file. As a result, it got the runtime error like. This is very easy to solve. Please search all xaml files you used local has this xmlns:local="clr-namespace:[your namespace]"
After I had installed a new component in my Xamarin project, I got an error like that: C:\Users\[username]\ AppData\Local\Xamarin\[packages]\[version]\class.jar missing.
I found the problems are caused the downloading packages are failed before. The Xamarin is not smart enough to re-download automatic.
The solution is simply. I only need to delete all zip files under Error: C:\Users\[username]\AppData\Local\Xamarin\zips and the package folder in the error message. Then I need to rebuild the project. The packages will be download again. The project will build successfully.
I am building an app with a map component. I put the Map Control on a navigation page. But I put this code on the button click event.
After the button is clicked, nothing happened. No Errors message at all.
I found out the problems is in Key. I need to re-create the key. I need to follow the steps by steps in this page.
Then that is working
Even the UI I built is very simple; I need to load some icons in the UI. I have used navigation page. After I had navigated two pages, then I got an exception, OutOfMemoryException. That is because Bitmap Decode is used a lot of memory. I found we should avoid using:
We should use the images in the embedded resources
Please change the properties of the image file:
Then the problem will solve.