[android-developers] Re: Missing MapPoint in 1.5r2?
Mark, Your solution works for me as well. Thanks. What I don't understand is that I don't have this problem when working in Eclipse with r2 but only have this problem when working in IntelliJ. Zhao On Jun 5, 10:26 am, Mark Murphy mmur...@commonsware.com wrote: Daniel wrote: I am getting this error as well. Has there been a solution? There's a workaround that has worked for me: Fortunately, using the Google Maps JAR file from Android 1.5r1 seems to work. To fix up your SDK this way, do the following: 1. Visithttp://developer.android.com/sdk/1.5_r1/index.htmland download the appropriate SDK for your platform 2. UnZIP the archive file in some likely place 3. Copy the add-ons/google_apis-3/libs/maps.jar from your Android 1.5r1 SDK into the same spot in Android 1.5r2, optionally renaming the existing maps.jar to some other name if you are nervous about this step (fromhttp://commonsware.com/AndTutorials/) -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Development Wiki:http://wiki.andmob.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Missing MapPoint in 1.5r2?
I am getting this error as well. Has there been a solution? On Jun 1, 6:22 pm, Mark Murphy mmur...@commonsware.com wrote: Raphael wrote: Thanks Mark, I'll have a look. Thanks! If you think of it, keep me posted! -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Missing MapPoint in 1.5r2?
Daniel wrote: I am getting this error as well. Has there been a solution? There's a workaround that has worked for me: Fortunately, using the Google Maps JAR file from Android 1.5r1 seems to work. To fix up your SDK this way, do the following: 1. Visit http://developer.android.com/sdk/1.5_r1/index.html and download the appropriate SDK for your platform 2. UnZIP the archive file in some likely place 3. Copy the add-ons/google_apis-3/libs/maps.jar from your Android 1.5r1 SDK into the same spot in Android 1.5r2, optionally renaming the existing maps.jar to some other name if you are nervous about this step (from http://commonsware.com/AndTutorials/) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Missing MapPoint in 1.5r2?
Thanks Mark, I'll have a look. R/ On Sat, May 30, 2009 at 5:18 PM, Mark Murphy mmur...@commonsware.com wrote: Raphael wrote: Please file a bug at b.android.com and we'll have a look. A small code/apk snippet would be ideal too. Filed as: http://code.google.com/p/android/issues/detail?id=2806 I tested this code under 1.5_r1 and 1.5_r2: package com.commonsware.android; import android.app.Activity; import android.os.Bundle; import com.google.android.maps.GeoPoint; public class GeoPointBug extends Activity { �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); GeoPoint status=new GeoPoint(0, 0); finish(); } } 1.5_r1 compiles fine. 1.5_r2 fails with: [javac] class file for com.google.map.MapPoint not found This sure feels like it's somehow a bug in my environments. I've tried it on two different PCs, one using a freshly-downloaded 1.5_r2, and they both give the error. Any advice would be greatly appreciated. Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunties? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Missing MapPoint in 1.5r2?
Raphael wrote: Thanks Mark, I'll have a look. Thanks! If you think of it, keep me posted! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Missing MapPoint in 1.5r2?
Please file a bug at b.android.com and we'll have a look. A small code/apk snippet would be ideal too. Thanks in advance. R/ On Sat, May 30, 2009 at 10:44 AM, Mark Murphy mmur...@commonsware.com wrote: I am attempting to build an application that uses the Google Maps Add-On. I get compile errors on this code: GeoPoint status=new GeoPoint((int)(lat*100.0), (int)(lon*100.0)); saying: [javac] StatusMap.java:31: cannot access com.google.map.MapPoint [javac] class file for com.google.map.MapPoint not found My guess is that MapPoint is some superclass of GeoPoint -- I'm not referring to MapPoint itself in my code anywhere, let alone where the compile error is. If I comment out these lines (and references to the now-missing status variable), everything else works fine, including displaying a map, so I know I'm targeting everything properly. While this project is one that I am migrating from earlier Android versions, I get the same error if I android create project -t 3 a fresh project and try using this same code. I could have sworn I compiled this cleanly on 1.5r1, though I may be mistaken. Anybody running into similar problems with 1.5r2? Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Missing MapPoint in 1.5r2?
Raphael wrote: Please file a bug at b.android.com and we'll have a look. A small code/apk snippet would be ideal too. Filed as: http://code.google.com/p/android/issues/detail?id=2806 I tested this code under 1.5_r1 and 1.5_r2: package com.commonsware.android; import android.app.Activity; import android.os.Bundle; import com.google.android.maps.GeoPoint; public class GeoPointBug extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); GeoPoint status=new GeoPoint(0, 0); finish(); } } 1.5_r1 compiles fine. 1.5_r2 fails with: [javac] class file for com.google.map.MapPoint not found This sure feels like it's somehow a bug in my environments. I've tried it on two different PCs, one using a freshly-downloaded 1.5_r2, and they both give the error. Any advice would be greatly appreciated. Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunties? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---