I am developing an android app and I want to enable Facebook log in and wall post from within the app. I solved this problem by using the binding project provided here:
[https://github.com/xamarin/monodroid-samples/tree/master/Facebook](github link)
However this sample is using V3.0 of the SDK which contains a bug that has been freezing up my app. This bug was removed in version 3.0.1. So now am trying to replace the old SDK with this new one inside the binding project provided in the link above.
I download the latest SDK from Facebook. I import it into Eclipse, then I export it as a .zip since the above mentioned binding project uses a LibraryProjectZip. But simply replacing the old SDK in the binding project doesn't work, giving the error "At least one input jar must be specified". Not knowing how to fix this, I tried exporting the Facebook SDK as a .jar instead. Including it in the binding project and setting it as an EmbeddedJar now gives this error "java exited with code 1". The output gives the following:
2> UNEXPECTED TOP-LEVEL EXCEPTION:
2> java.lang.IllegalArgumentException: already added: Lcom/facebook/SessionDefaultAudience;
2> at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
2> at com.android.dx.dex.file.DexFile.add(DexFile.java:163)
2> at com.android.dx.command.dexer.Main.processClass(Main.java:490)
2> at com.android.dx.command.dexer.Main.processFileBytes(Main.java:459)
2> at com.android.dx.command.dexer.Main.access$400(Main.java:67)
2> at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:398)
2> at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
2> at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
2> at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
2> at com.android.dx.command.dexer.Main.processOne(Main.java:422)
2> at com.android.dx.command.dexer.Main.processAllFiles(Main.java:333)
2> at com.android.dx.command.dexer.Main.run(Main.java:209)
2> at com.android.dx.command.dexer.Main.main(Main.java:174)
2> at com.android.dx.command.Main.main(Main.java:91)
2> 1 error; aborting
2>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(988,3): error MSB6006: "java" exited with code 1.
2>
2>Build FAILED.
Any ideas how to fix these issues? am personally not experienced at all with Java or Eclipse.