Adding Google-Play-Services to library project

删除回忆录丶 提交于 2019-12-06 01:41:41

[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;

These errors suggest that you have 2 different jar files which are both trying to declare the same variable. Perhaps you have 2 different versions of the google-play-services?

In your library project properties in the java build path (order and export tab) make sure that the Android dependancies box is ticked.

This will allow the library project to export the google play library with it.

You will then not need to add a reference to google play in the client project.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!