简体   繁体   English

将StackMob sdk导入库时出错(与annotations.jar或dalvik有关?)

[英]Error while Importing StackMob sdk into libraries (related to annotations.jar or dalvik?)

When I want to use StackMob sdk I'm giving the error which I share below. 当我想使用StackMob SDK时,出现以下错误。 It appears only while compiling process. 它仅在编译过程中出现。 I checked all similar questions related to this situation before asking however they did not solve my problem. 在询问之前,我检查了所有与此情况相关的类似问题,但是这些问题不能解决我的问题。

According to general opinion it might be caused by importing external jars twice implicitly. 根据一般意见,这可能是由两次隐式导入外部jar引起的。 But I checked 100 times maybe but there are no any jar file used with the same name twice. 但是我检查了100次,但没有两次使用相同名称的jar文件。

Ps: I'm using Intellij Idea as IDE. 附:我正在使用Intellij Idea作为IDE。

Android Dex: [POF] UNEXPECTED TOP-LEVEL EXCEPTION:
Android Dex: [POF] java.lang.IllegalArgumentException: already added: Landroid/annotation/SuppressLint;
Android Dex: [POF] at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
Android Dex: [POF] at com.android.dx.dex.file.DexFile.add(DexFile.java:163)
Android Dex: [POF] at com.android.dx.command.dexer.Main.processClass(Main.java:490)
Android Dex: [POF] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:459)

This seems to be something with the latest facebook jar, which we bundle. 这似乎与我们捆绑的最新Facebook jar有关。 I'm looking into it, but in the meantime, here's a jar without facebook integrated. 我正在研究它,但与此同时,这是一个没有集成Facebook的罐子。 You can still use facebook features, but you'll need to include the FB code yourself 您仍然可以使用Facebook功能,但是您需要自己添加FB代码

https://s3.amazonaws.com/static.stackmob.com/sdks/android/stackmob-android-sdk-1.1.1-nofb.jar https://s3.amazonaws.com/static.stackmob.com/sdks/android/stackmob-android-sdk-1.1.1-nofb.jar

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

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