简体   繁体   English

android解析sdk与Facebook sdk

[英]android parse sdk with Facebook sdk

I am integrating Parse sdk to my project. 我正在将Parse sdk集成到我的项目中。
I have Facebook sdk already in my project. 我已经在我的项目中使用了Facebook sdk。
After i imported the parse .jars and run my project, eclipse has the following error message in Console tab (instead of LogCat tab): 在我导入解析.jars并运行我的项目之后,eclipse在Console选项卡中显示以下错误消息(而不是LogCat选项卡):
Unable to execute dex: Multiple dex files define Lbolts/AggregateException; 无法执行dex:多个dex文件定义Lbolts / AggregateException;
Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lbolts/AggregateException; 转换为Dalvik格式失败:无法执行dex:多个dex文件定义Lbolts / AggregateException;

I have created a fresh new project and import the 2 sdk, same errors come out. 我创建了一个全新的项目并导入了2个sdk,出现了同样的错误。 When I take out one of them, problem gone. 当我拿出其中一个时,问题就消失了。

Parse sdk also supports some (if I am not wrong) Facebook functions like Facebook login. Parse sdk还支持一些(如果我没有错)Facebook功能,如Facebook登录。 But I also need Facebook sharing and I cannot find parse sdk supporting it. 但我也需要Facebook共享,我找不到支持它的解析sdk。 So I still need the native Facebook sdk. 所以我仍然需要原生的Facebook sdk。

Anyone also have the same problem? 任何人也有同样的问题? Any solution for it?... 有什么解决方案吗?...
Great thanks in advance 非常感谢提前

I figured out that if I only imported the "parse.jar" and leave the "bolts.jar" not imported, everything works fine and I did receive push notification after completing the remaining procedures from Parse website. 我想通了如果我只导入了“parse.jar”并且没有导入“bolts.jar”,一切正常,我在完成Parse网站的剩余程序后确实收到了推送通知。

It also works for iOS side. 它也适用于iOS方面。 Simply import Parse framework and left Bolts framework not imported. 只需导入Parse框架并保留未导入的Bolts框架。

I wonder if this is the best solution but at least it works for me 我想知道这是否是最佳解决方案,但至少它对我有用

I use eclipse and I didn't see the imports.. 我用eclipse而且没看到进口..

Besucally you need to understand that the problem is that somewhere somehow there are duplicates jar file. Besucally你需要明白问题是某处某处有重复的jar文件。 Usually this caused because multipul libraries that you use that have same jars files. 通常这是因为您使用的多个库具有相同的jar文件。

For me - both facebookSDk and the ParseLoginUI had bolts jar. 对我来说 - facebookSDkParseLoginUI都有螺栓罐。 because the ParseLoginUI uses facebookSDK library, Ieft the file only in the facebookSDK library 因为ParseLoginUI使用facebookSDK库,所以只在facebookSDK库中存放文件

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM