Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Urgent: Xamarin.Forms.Maps does not build -> COMPILETODALVIK : UNEXPECTED TOP-LEVEL

$
0
0

Hi Xamarin Masters,

I have been banging my head the whole day trying to figure out why can't i build my android project (windows phone project works in this case, android project is the only problem). Here's what happens:

  1. Create a cross platform application (portable or shared), any of the two will do.
  2. Build all projects (works good, no problem)
  3. Add dependencies for android project the following,

    • Xamarin.Forms
    • Xamarin.Forms.Maps
    • Google Play Services Lib (added by default)
  4. Build the android project with the new added dependencies (not good)

    • does not build the project
    • just says "Build failed", but without errors
    • Only hint: COMPILETODALVIK : UNEXPECTED TOP-LEVEL error

I cannot seem to understand fully what it asks out of me. My colleagues at work did not even have ideas about it nor your forums or communities does have any close answer to this simple but big problem.

We are now trying to opt to use the native implementation of the maps over the android platform only (on the cross platform project). Such a dirty long work, but we don't have any choice. We need to get things done and as we are getting the deadline very soon.

Any urgent help and suggestions from you guys is much appreciated. It bugs me a lot, to create a separate native map platform over the android project in the cross platform solution.

Sincerely,
Jeffrey S. Albano
Mynd Dynamic Team, Inc.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>