Google Maps Android API v2 crashes with NoClassDefFound Error

前端 未结 3 829
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-27 16:00

I am trying to implement the most basic example of google maps android api v2 example. But it crashes with the error:java.lang.NoClassDefFoundError: com.google.android.gms.R$sty

3条回答
  •  渐次进展
    2021-01-27 16:25

    1. Use Android SDK Manager download "google play services"

    2. import it into your workspace (path: android-sdk root/extras/google/google_play_service/libproject/google-play-service_lib)

    3. project Properties -> android -> Library add google-play-service_lib

    4. Build path -> Order and Export check Android private libraries

提交回复
热议问题