简体   繁体   English

在依赖项列表中找到2个版本的google-play-services.jar

[英]Found 2 versions of google-play-services.jar in the dependency list

I know there's a couple of threads dealing with the same issue, but none of the solutions are working for me. 我知道有几个线程处理同一问题,但是没有一个解决方案对我有用。

I am building an app that uses both the Google and the Facebook SDK. 我正在构建同时使用Google和Facebook SDK的应用程序。 When launching Eclipse, I get this error message: 启动Eclipse时,出现以下错误消息:

[2014-03-02 11:40:40 - ***] Found 2 versions of google-play-services.jar in the dependency list,

[2014-03-02 11:40:40 - ***] but not all the versions are identical (check is based on SHA-1 only at this time).

[2014-03-02 11:40:40 - ***] All versions of the libraries must be the same at this time.

[2014-03-02 11:40:40 - ***] Versions found are:

[2014-03-02 11:40:40 - ***] Path: /Users/***/Development/adt-bundle-mac-x86_64-20131030/sdk/extras/google/google_play_services/libproject/google-play-services_lib/libs/google-play-services.jar

[2014-03-02 11:40:40 - ***]     Length: 1501528

[2014-03-02 11:40:40 - ***]     SHA-1: e5f81129dfb3d02df80126512bc98278ed2bb40a

[2014-03-02 11:40:40 - ***] Path: /Users/***/Development/my-app/libs/google-play-services.jar

[2014-03-02 11:40:40 - ***]     Length: 103227

[2014-03-02 11:40:40 - ***]     SHA-1: 70356edea26cc0bec4870d2cbd0eec6f0d2ffcae

[2014-03-02 11:40:40 - ***] Jar mismatch! Fix your dependencies

I tried Android Tools ---> "Add support library..." with all three projects (Facebook SDK, Google SDK, My-App project), but the error remains. 我尝试对所有三个项目(Facebook SDK,Google SDK,My-App项目)使用Android工具--->“添加支持库...”,但错误仍然存​​在。 A lot of answers tell people to delete one jar or copy/paste jars ... but I'm fairly new to this and I don't wanna break anything. 很多答案告诉人们删除一个罐子或复制/粘贴罐子……但是我对此还很陌生,我不想破坏任何东西。

What's the best way to go here? 去这里最好的方法是什么?

The above problem comes when multiple versions of the same jar file is used in the project (including the library project if added).The best practice is to delete the previous jar files and add a fresh updated same jar file in all the corresponding projects. 当项目中使用多个版本的同一jar文件时(包括添加的库项目),将出现上述问题。最佳实践是删除以前的jar文件并在所有相应的项目中添加一个全新的更新的同一jar文件。

Refer this post, https://stackoverflow.com/a/12045627/1665507 请参阅这篇文章, https://stackoverflow.com/a/12045627/1665507

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 google-play-services.jar单独下载 - google-play-services.jar separate download 如何添加google-play-services.jar项目依赖项,以便我的项目将运行并显示地图 - How to add google-play-services.jar project dependency so my project will run and present map Android无法导出应用程序(由于google-play-services.jar) - Android failed to export application (due to google-play-services.jar ) 无法将google-play-services.jar引用到我的应用程序中 - Could not able to refer google-play-services.jar into my application Android较新的google-play-services.jar导致启动延迟 - Android newr google-play-services.jar causing delay on startup google-play-services.jar和google-play-services_lib是否相同? - Are google-play-services.jar and google-play-services_lib the Same Thing? 用google-play-services.jar替换com.google.android.gms:play-services - replacing com.google.android.gms:play-services with google-play-services.jar 为什么使用Google Play服务项目为什么不使用google-play-services.jar - why google play service project why not using google-play-services.jar GoogleAdMobAdsSdk-6.4.1.jar和google-play-services.jar中的AdRequest类冲突 - AdRequest Class conflict in GoogleAdMobAdsSdk-6.4.1.jar and google-play-services.jar 如果将google-play-services.jar lib添加到Eclipse中的helloworld android项目中,Android编译会冻结 - Android compilation freezes if google-play-services.jar lib is added into my helloworld android project in Eclipse
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM