New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android-support-v13.jar and android-support-v4.jar in the same project #492
Comments
same problem here |
Same problem here, anyone found a solution yet? |
Hi @larswiwi. We replaced the So the steps we did (not sure if everything is necessary).
This steps worked for us. |
Thank you very much for the help! I been struggling for a couple of days on this one. |
Howdy all, i've forked an done the changes that @Rautec mentioned. (thanks for the great ideas guys) Changes to be committed: uofmmike/phonegap-facebook-plugin@dc1f660 And here's a copy of push without the line mentioned (No need for all of us to redo all the work!) ** I have no idea the overall impact, but this is working for me right now |
I am currently having the same problem. I followed @uofmmike and @Rautec instructions, but now I am getting the error: Manifest merger failed : uses-sdk:minSdkVersion 10 cannot be smaller than version 14 declared in library I feel like I am forgetting something simple but I have been trying to fix this problem for last couple days. |
Verify your config.xml version main android manifest.xml and your androidManifest.xml in the Facebook folder are set to the right minSdkVersion. (Look for a 10 and raise it to a 14) |
@uofmmike thanks a lot man! your forks work well. 👍 |
there is this same issue with https://github.com/phonegap/phonegap-plugin-barcodescanner plugin |
Thanks! The problem seems to be when you use the push notification plugin as well as the local notification plugin. Deleting android-support-v4.jar from |
Yeap, i've needed to delete android-support-v4.jar from platforms/android/libs to work well. Thanks @kanduvisla |
i've come across this: http://stackoverflow.com/questions/21102598/android-studio-unexpected-top-level-exception Winning Answer (could be of help here) Like everyone else said here, the support library (com.android.support) is being included more than once in your project. Try adding this in your build.gradle at the root level and it should exclude the support library from being exported via other project dependencies.
|
simple comment the "cordova.system.library.1=com.android.support:support-v4:+" this line in project.properties file |
I got this error when I had not yet removed the old phonegap.plugins.PushPlugin from my project. Removed that and it was fine. |
I've removed the oldest android-support jar and I've substituted it with the latest one. In my case the conflicting plugins were FaceBook connect and PushPlugin After performing the following command the problem was fixed. cp ../../code/plugins/com.phonegap.plugins.PushPlugin/src/android/com/plugin/android-support-v13.jar ../../code/platforms/android/phonegap-facebook-plugin/libs/ |
i got same error after removing one library its working fine |
how to exclude if i using phonegap build |
Hi I'm using PushPlugin for Android and Facebook SDK for Android in the same project and when I try to Run the app I get the following error:
Error:Execution failed for task ':dexDebug'.
I searched about this bug: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs; and seems that is because I have two versions of the android-support lib. And in fact I have android-support-v13.jar (used by PushPlugin) and android-support-v4.jar (used by Facebook SDK).
How can I solve this problem and use both plugins?
Thanks in advance!
I'm using Android Studio 1.0.2, ANDROID_BUILD_TARGET_SDK_VERSION=21 ANDROID_BUILD_MIN_SDK_VERSION=14 ANDROID_BUILD_TOOLS_VERSION=21.1.2 ANDROID_BUILD_SDK_VERSION=21
The text was updated successfully, but these errors were encountered: