Android AddThis sdk + Facebook sdk won't build in Android Studio -


i have project i'm working on in android studio uses facebook sdk retrieving information facebook user. works pretty well.

i need implement addthis, when try compile project both sdks referenced, error:

android dex: [<removed>] com.android.dx.util.dexexception: multiple dex files define lcom/facebook/android/asyncfacebookrunner$1; 

inside addthis .jar, expected, com.facebook.android.asyncfacebookrunner exists. exists in facebook sdk module. there functionality need in addthis doesn't exist in facebook, , vice versa.

does know way handle type of situation?

i able resolve issue:

since facebook sdk module , not jar, referenced addthis0.8.8.jar facebook sdk module, , removed reference project directly.

after doing so, there still conflict between com.facebook.android.* in facebook sdk , duplicate ( com.facebook.android.* ) in addthis jar. so, deleted com.facebook.android package along it's contents - from facebook sdk - included com.addthis in ( class path, think? android studio suggested include when typed "atbutton" in code. said "heck yea, jetbrains!" ).

i able use addthis facebook sdk without conflicts.

i hope process can out there in way.

[edit]

there still problems this. reverted facebook sdk, , removed facebook stuff addthis jar. not 100% working still, better idea keep facebook stuff in facebook module. please post answer if have better solution.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -