• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Using com.google.android.maps?

Hey,

I'm just beginning to play around with Android Development and I ran across this:
How To Program Google Android

So I downloaded the source and set up a project. However, when I run the project, I get this error:

[2010-07-09 19:43:52 - WamF] Installing WamF.apk...
[2010-07-09 19:44:11 - WamF] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
[2010-07-09 19:44:11 - WamF] Please check logcat output for more details.
[2010-07-09 19:44:11 - WamF] Launch canceled!

After checking the logcat, I saw this:

07-10 00:44:09.641: ERROR/PackageManager(58): Package com.radioactiveyak.wamf requires unavailable shared library com.google.android.maps; failing!

After looking up the google maps API, it seems you have to register for a key? Location and Maps | Android Developers

But I don't understand if you need the key to even run the maps as a shared app in the emulator (like in this case), or if it's just for published apps. I'm also confused what all this "signing" and such it keeps talking about like this:
Registering the MD5 fingerprint of the certificate that you will use to sign your application. The Maps registration service then provides you a Maps API Key that is associated with your application's signer certificate.

All I want to do is figure out how to not make it fail and be able to share the library. Thanks!


EDIT: Well I figured out that I had to change the build target to Google API's, and it starts the emulator and starts the program, but then it says "The application com.radioactiveyak.wamf) has stopped unexpectedly. Please try again." and this is in the Eclipse console:

[2010-07-09 20:59:06 - ddms]null
java.lang.NullPointerException
at com.android.ddmlib.Client.sendAndConsume(Unknown Source)
at com.android.ddmlib.HandleHello.sendHELO(Unknown Source)
at com.android.ddmlib.HandleHello.sendHelloCommands(Unknown Source)
at com.android.ddmlib.Client.getJdwpPacket(Unknown Source)
at com.android.ddmlib.MonitorThread.processClientActivity(Unknown Source)
at com.android.ddmlib.MonitorThread.run(Unknown Source)
 
Back
Top Bottom