ADT22にアップデートしてAndroid google maps v2使ったらいきなり以下のエラーでた
Caused by: java.lang.NoClassDefFoundError: com.google.android.gms.maps.model.LatLng
ぐぐりまくった結果、以下のような回答が有力だった
- http://stackoverflow.com/questions/15370641/google-maps-api-on-android-not-working
- so I cracked this question a few days ago and here is how I made it work. I removed all traces of the google play library in the projects sections. Next I re-imported the google play library but this time I clicked the option for copying it into my workspace as well. Next in the added this library in the compile paths and it worked.
- 訳: workingスペースにgoogle-play-services_libをコピーするようにimportし直してみろ
- http://andtoki.blogspot.jp/2013/05/google-map-v2.html
- http://android.develop123.com/index.php/component/content/article/2-android-42/4-google-maps-android-api-v2-tutorial
全部試したらうまくいった
1時間くらいはまった