简体   繁体   中英

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. 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. But I checked 100 times maybe but there are no any jar file used with the same name twice.

Ps: I'm using Intellij Idea as 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. I'm looking into it, but in the meantime, here's a jar without facebook integrated. You can still use facebook features, but you'll need to include the FB code yourself

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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