我正在开发一款地图库,使用Google Play Services。到目前为止一切顺利。问题在于:
- 我将Google Play Services库项目包含在我的地图库中(使用:属性 -> Android -> 添加库)。通过库内的客户端进行测试(取消选中库复选框并启动MainActivity),一切正常!
当我将我的地图库包含在示例客户端项目中时,该客户端项目无法访问Google Play Services。如果我在客户端项目中包含Google Play services,则会出现以下错误:
[2013-07-18 08:40:04 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/google/android/gms/R$attr;
[2013-07-18 08:40:04 - maps-sample-android] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/google/android/gms/R$attr;