Why does my Xamarin.Forms.Maps Android project fail with COMPILETODALVIK UNEXPECTED TOP-LEVEL ERROR?
- PDF for offline use
Let us know how you feel about this
Translation Quality
0/250
This error may be seen in the Error pad of Xamarin Studio or in the Build Output window of Visual Studio; in Android projects using Xamarin.Forms.Maps.
This is most commonly resolved by increasing the Java Heap Size for your Xamarin.Android project. Follow these steps to increase the heap size:
Visual Studio
- Right-click the Android project & open the project options.
- Go to Android Options -> Advanced
- In the Java heap size text box enter 1G.
- Rebuild the project.

Xamarin Studio
- Right-click the Android project & open the project options.
- Go to Build -> Android Build -> Advanced
- In the Java heap size text box enter 1G.
- Rebuild the project.

Let us know how you feel about this
Translation Quality
0/250
Xamarin Workbook
If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.

