第一次使用google maps v2 运行时遇到下面的异常:
java.lang.NoClassDefFoundError: com.google.android.gms.R$styleable
这个问题是因为 v2 版地图需要 google-play-services ,而我为了省事,将google-play-services.jar 复制到项目的lib目录下然后引入到了项目中,正确的应该是将extras\google\google_play_services\libproject\google-play-services_lib 项目导入eclipes,然后在自己的项目中进行引用,如下:
其他问题请参考:http://blog.youkuaiyun.com/leisurelife1990/article/details/8508814
本文解决初次使用Google Maps v2时遇到的NoClassDefFoundError异常,通过正确导入Google Play Services来避免问题。提供了解决方案及参考链接。
873

被折叠的 条评论
为什么被折叠?



