I am integrating Parse sdk to my project.
I have Facebook sdk already in my project.
After i imported the parse .jars and run my project, eclipse has the following error message in Console tab (instead of LogCat tab):
Unable to execute dex: Multiple dex files define Lbolts/AggregateException;
Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lbolts/AggregateException;
I have created a fresh new project and import the 2 sdk, same errors come out.
When I take out one of them, problem gone.
Parse sdk also supports some (if I am not wrong) Facebook functions like Facebook login. But I also need Facebook sharing and I cannot find parse sdk supporting it. So I still need the native 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.
It also works for iOS side. Simply import Parse framework and left Bolts framework not imported.
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..
Besucally you need to understand that the problem is that somewhere somehow there are duplicates jar file.
Usually this caused because multipul libraries that you use that have same jars files.
For me - both facebookSDk and the ParseLoginUI had bolts jar. because the ParseLoginUI uses facebookSDK library, Ieft the file only in the facebookSDK library
Related
I am trying to implement an app using Skype for Business Android SDK's
this is the document that helps to configure the SDK, which didn't help me integrating the aar files.
https://msdn.microsoft.com/en-us/skype/appsdk/gettingstarted
so, i integrated the libraries using new module --> import jar/aar files, that resolves my compilation error, i can now also get the class references from these SDK's. but when i run my application it says Failed to load native library.
there is an example on github that uses Skype for business SDK. where everything works like a charm. but i am still unable to figure out why it fails to load library in my application.
Does this Unspecified in my attached screenshot has to do anything with why my app is failing to load libaries?
Explicitly adding Architecture specific Native libraries helped me.
SFB currently supports only armeabi.
1) create a folder in your project's main lib/armeabi
2) Extract Sfb library marked in yellow in the pic below.
3) Navigate to SkypeForBusinessNative/jni/armeabi
4) you will find five .so files, marked in white in the pic.
5) paste them in the folder you created in step 1.
You will have your application running.
I am trying to build a library which will be having some activities of it's own that will be included as a part of another Host App.
I want to integrate Facebook SDK inside this library for sharing some content. When I try to include the FB SDK as a library project and then include the library into the host app, I get the
Dalvik cache with error 1 error
while compiling the Host project.
Am I doing something wrong here?
It's hard to tell what the issue is without more information, but working with the FacebookSDK, I know I've had a similar issue.
Make sure that the support libraries, android-support-v4.jar, or whatever you're using, isn't in both your project and the FacebookSDK project. If you have to pick one or the other, put the .jar in the FacebookSDK so both projects can reference it.
Other than that, if you're using eclipse, make sure you clean 17 times, and restart eclipse a few times too. ;)
I am going to use SkyEpub 3 library in my android application to read ebooks in epub format. To get familiar with the method of using SkyEpub I have downloaded its android demo project from here.
Its demo project is working properly, But when I use the skyepub.jar in my own project, it says some methods and classes from the jar file are undefined. Of course in the mean time I am using an unlicensed version of this library. I want to test it before buying the license if it was ok. I doubt that the errors are because of using the unlicensed version of the library in my project.
Can any one tell me please what is the problem exactly?
Thank you in advance.
Because there are a lot of classes ,which are not in jar, in example project. In the example, they create a lot of classes by extends another classes from jar. I used this jar before.
I found what was the problem. I increased priority of the jar file in eclipse. Now it works.
I have a LibraryProject that uses Amazon AWS with ProductionApps that use the LibraryProject (as a library).
My new ProductionApp uses GoogleAppEngine with autogenerates libraries for use in the app. The problem is when I try to build the new app, I get the following error:
Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lorg/codehaus/jackson/Base64Variant;
Through trial and error I found that the offending library (in LibraryProject) is is amazon-aws-sdk-1.6.0-core.jar (required to use Amazon AWS).
How can I resolve the error and still use AWS and GAE?
From your log it looks like the problem is that both Amazon AWS and GoogleAppEngine each include the same class in their library, so assuming that the offending classes are largely identical in Amazon & Google code, possible solutions are:
A. delete those classes from GAE lib, as your main project would still have access to the version provided by Amazon AWS, or
B. extract those classes into its own jar and delete them from both versions, or
C. if the related GAE libs are auto-generated by Eclipse plugin, extract them from GAE into its own jar (but don't delete them from GAE lib), and have Amazon AWS lib project reference the extracted jar (but don't export it)
Try deleting android-support-v4.jar file. I believe Amazon or Google will take care of it. If that doesn't work let me know so I can figure.
I have an android app, which calls an jar lib say b.jar.
This b.jar lib. is then calls facebook sdk lib.
When I compile my app under this situation, it always says
Unable to execute dex: Multiple dex files define Lcom/facebook/android/AsyncFacebookRunner$1;
Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/facebook/android/AsyncFacebookRunner$1;
I have used a few days to make it work, however, I failed to tackle this issue.
Do anyone know how to solve this issue?
Go to the project properties and then Java build path -> Libraries -> Remove Android dependencies and OK then Run your project
Referred from : https://stackoverflow.com/a/15247670/1585773
Worked perfectly for me .
All answers are a work around. They do not solve the root cause of the issue. If you look at your project structure, there is a FacebookSDK project and your Project. In both the project, you have com.facebook.android(first java file being AsyncFacebookRunner) package, which have the same java files included. Obviously multiple dex files will define your class files and you will get error.
Solution - Remove the com.facebook.android from you main project (not FacebookSDK).
For me this was caused by a conflict with the AddThis SDK, since the AddThis SDK includes a partial copy of the Facebook SDK embedded in it. And so the com/facebook/android/AsyncFacebookRunner class was defined twice.
I was able to resolve this using these answers:
Android AddThis sdk + Facebook sdk won't build in Android Studio
Android Studio - App Crashing on AddThis.jar - "Sources Not Found" Message
Specifically, by using this step from the second answer:
Used command zip -d addthis0.0.8.jar com/facebook/* in Terminal to
delete the Facebook files from addthis0.0.8.jar
Since I'm using Eclipse, I didn't need to do any of the other steps in those answers.