Bug 23931 - OsmDroidBindingExample demo throws exceptions!
Summary: OsmDroidBindingExample demo throws exceptions!
Status: RESOLVED INVALID
Alias: None
Product: Android
Classification: Xamarin
Component: Tools and Addins ()
Version: 4.18.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2014-10-20 07:14 UTC by Thore Berntsen
Modified: 2017-08-07 21:30 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Thore Berntsen 2014-10-20 07:14:17 UTC
Error	61	'OsmDroid.Views.Overlay.OverlayManager' does not implement inherited abstract member 'Java.Util.AbstractList.Get(int)'	C:\Xamarin\Motorola\OsmDroidBindingExample\OsmDroidBindingExample\OsmDroidBinding\obj\Debug\generated\src\OsmDroid.Views.Overlay.OverlayManager.cs	9	23	OsmDroid
Error	518	Unexpected error - Please file a bug report at http://bugzilla.xamarin.com. Reason: System.IO.FileNotFoundException: Could not load assembly 'OsmDroid, Version=, Culture=neutral, PublicKeyToken=null'. Perhaps it doesn't exist in the Mono for Android profile?	OSMDroidTest

I'm trying Your Java binding Library. It seems to have problems around every corner...
Comment 1 Arpit Jha 2014-10-21 09:58:38 UTC
I have checked this issue and unable to reproduce it.

we tried to reproduce with the help of bug description and observed that able to build and deploy successfully.

Could you please provide us Android SDK Tools( In VS via - Tools->Android->Start Android SDK Manager),Build Output and Environment Info,So that we can able to reproduce at our end ?

Which Java version Installed ?

Screencast Regarding Same:
http://screencast.com/t/cdhdx3Ooodxm

Environment Info:

Microsoft Visual Studio Professional 2013
Version 12.0.30723.00 Update 3
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

Xamarin   3.7.203.0 (ff146f5240189a2ec6d3c6f75cf3967f79c79a18)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   4.18.0.34 (3b7ef0a796e8744972c48034403a6e7cb7ec189e)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.2.0.0 (65b2f3a0f52f365b90ac952f0ec2e40fa0b510d4)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 2 Sam 2014-11-18 09:39:30 UTC
i have the same problem here
downloaded the project , open ,build and http://im44.gulfup.com/j8L1zq.png

Error	80	'OsmDroid.Views.Overlay.OverlayManager' does not implement inherited abstract member 'Java.Util.AbstractList.Get(int)'	C:\Users\sdawalib\XamarinTut\OsmDroidBindingExample\OsmDroidBinding\obj\Debug\generated\src\OsmDroid.Views.Overlay.OverlayManager.cs	9	23	OsmDroid

Error	538	Unexpected error - Please file a bug report at http://bugzilla.xamarin.com. Reason: System.IO.FileNotFoundException: Could not load assembly 'OsmDroid, Version=, Culture=neutral, PublicKeyToken=null'. Perhaps it doesn't exist in the Mono for Android profile?	OSMDroidTest

java: jdk1.7.0_71

Environment Info:

Microsoft Visual Studio Premium 2013
Version 12.0.30501.00 Update 2
Microsoft .NET Framework
Version 4.5.51650

Installed Version: Premium

Xamarin   3.8.48.0 (ce228b21c69ea3a0feaa7b5e50e9bb19fcbe238c)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   4.18.0.39 (0ef616ae42005ece52f6df7aa1e093ceb11998f8)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.4.0.0 (209abebbd8f1a292d042420edb45fa5fbd3f017b)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 3 Sam 2014-11-18 10:21:05 UTC
i have added the following in the Metadate.xml 
<attr path="/api/package[@name='org.osmdroid.views.overlay']/class[@name='OverlayManager']/method[@name='get']" name="return">java.lang.Object</attr>

and now it's working
Comment 4 Jon Douglas [MSFT] 2017-08-07 21:30:09 UTC
Thank you for taking the time to submit this report. After reviewing the description of this bug, we believe it no longer affects the current version of Xamarin.Android. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction.