[Mono-bugs] [Bug 661858] Allow the use of Jar files to be used in MonoDroid

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 15 11:36:20 EST 2011



--- Comment #7 from Jonathan Pryor <jpryor at novell.com> 2011-02-15 16:36:20 UTC ---
Part (2) redux: we should NOT include the .jar in 'dx' compilation.

(In other words, the emulator "lies" because I was using the wrong emulator!)

Playing around with 'ant' (the only way to test!), two points of interest

 1. android.jar and the //uses-library .jar files are passed to `javac
 2. maps.jar (for a Google Maps use) is NOT compiled into classes.dex.

How, then, does <uses-library android:name="com.google.android.maps"/> work?

On my N1, there is a /system/framework/com.google.android.maps.odex file; this
is the implementation to use.

How does it work in the emulator?  It doesn't -- the framework isn't found.

How do we use an emulator?  By using a different target -- we can't use e.g.
the Android API v2.2 target, we instead need to use the "Google APIs (Google
Inc.)" target.  _That_ includes the needed
/system/framework/com.google.android.maps{.odex,.jar} file to allow the app to
work in the emulator.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list