Facebook的SDK崩溃谷歌播放服务-lib如果输入为现有的Andr​​oid源$ C ​​$ C [英] Facebook SDK crashes google-play-services-lib if imported as existing Android source code

查看:179
本文介绍了Facebook的SDK崩溃谷歌播放服务-lib如果输入为现有的Andr​​oid源$ C ​​$ C的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常奇怪的问题到找到解决方案似乎是非常棘手。这里的故事:

I have an extremely strange problem to which finding solution seems to be very tricky. Here's the story:

我正在同时使用Facebook的SDK和谷歌地图V2中的应用。队友正在对谷歌地图和我的工作在Facebook上的一部分。当我们结合自己和我的code似乎仅仅有FacebookSDK作为导入的项目工作区(甚至在属性引用| Android版|我们的应用程序的库部分),直线距离使得应用程序不会看到谷歌地图图书馆。解决方法是谷歌地图加入到Java构建路径,然而,当我们尝试访问基于谷歌地图的活动应用程序仍然崩溃。没有在工作区中的Facebook SDK使得谷歌地图的工作。当应用程序与谷歌地图跑了添加到Java构建路径,试图访问谷歌地图活动LogCat中时,显示的NoClassDefFoundError例外。

The application I'm working on uses both Facebook SDK and Google Maps v2. Team mate was working on Google Maps and I was working on Facebook part. When we combine his and mine code it appears that just having FacebookSDK as an imported project in the workspace (not even referenced in Properties|Android|Library section of our app) , straight away makes the app not see the Google Maps library. The work around is to add Google Maps into Java build path, however the application still crashes when we try to access the activity based on Google Maps. Not having Facebook SDK in the workspace makes the Google Maps work. When the app is ran with Google Maps added to the Java build Path, when trying to access the Google Maps activity LogCat shows NoClassDefFoundError exception.

希望我解释这个问题很好。如果没有,那么让我知道更多的是需要得到接近解决这个奇怪的问题。感谢:)

Hope I explained the problem well. If not then let me know what more is required to get closer to fixing this strange problem. Thanks :)

推荐答案

解决方案:它似乎增加Java构建路径参考android_sdk\\extras\\google\\google_play_services\\libproject\\google-play-services_lib\\libs\\google_play_services.jar文件固定的问题。孤岛危机避免。 ;)

SOLUTION: It seems that adding Java Build Path reference to android_sdk\extras\google\google_play_services\libproject\google-play-services_lib\libs\google_play_services.jar file fixed the issue. Crysis averted. ;)

这篇关于Facebook的SDK崩溃谷歌播放服务-lib如果输入为现有的Andr​​oid源$ C ​​$ C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆