git-printa / osmbonuspack

Automatically exported from code.google.com/p/osmbonuspack
0 stars 0 forks source link

Erro on instantiate KmlDocument class #77

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
i've the flowing erro on trying to use KmlDocument:
java.lang.VerifyError: org/osmdroid/bonuspack/kml/KmlDocument

it fails when i try to instantiate KmlDocument file:
KmlDocument  kmlDocument = new KmlDocument();
            kmlDocument.parseUrl("http://mapsengine.google.com/map/kml?mid=z6IJfj90QEd4.kUUY9FoHFRdE");
            FolderOverlay kmlOverlay = (FolderOverlay)kmlDocument.mKmlRoot.buildOverlay(MainActivity.this.mapView,null,null,kmlDocument);
            MainActivity.this.mapView.getOverlays().add(kmlOverlay);
MainActivity.this.mapView.invalidate();

Original issue reported on code.google.com by diogo.guimaraes.carvalho on 31 Jul 2014 at 7:44

GoogleCodeExporter commented 8 years ago
Which version are you using for: OSMBonusPack, osmdroid, and Android SDK?

In your code, do you have an other call to any OSMBonusPack method, before this 
one?

Please provide a more complete logcat stacktrace. 

Original comment by mathieu....@gmail.com on 31 Jul 2014 at 8:09

GoogleCodeExporter commented 8 years ago
Hi there, i solve it, by adding google gson-2.2 lib to my project, thanks for 
the feedback, case closed

Original comment by diogo.guimaraes.carvalho on 1 Aug 2014 at 11:14

GoogleCodeExporter commented 8 years ago
Well, this means that I missed to mention the need for gson-2.2.4 lib in the 
How to install page. Thanks! 

Original comment by mathieu....@gmail.com on 1 Aug 2014 at 3:01

GoogleCodeExporter commented 8 years ago
HowToInclude completed. 

Original comment by mathieu....@gmail.com on 11 Aug 2014 at 9:23