Open fernandopg opened 9 years ago
same problem here
Same problem here, anyone found a solution yet?
Hi @larswiwi and @Rautec!
I simply deleted that library from PushPlugin (android-support-v13.jar) and all is working! That worked for me!
Hi @larswiwi.
We replaced the android-support-v4.jar
from the facebook lib by the android-support-v13.jar
as it is more actual then the v4 version.
So the steps we did (not sure if everything is necessary).
android-support-v4.jar
by android-support-v13.jar
phonegap-facebook-plugin/platforms/android/FacebookLib/build.gradle
change to compile 'com.android.support:support-v13:[20,21)'
phonegap-facebook-plugin/platforms/android/FacebookLib/project.properties
change the target to at least target=android-14
phonegap-facebook-plugin/platforms/android/FacebookLib/AndroidManifest.xml
change the minSdkVersion to at least <uses-sdk android:minSdkVersion="14" />
This steps worked for us.
Thank you very much for the help! I been struggling for a couple of days on this one. Also I got help from this https://github.com/driftyco/ionic-cli/issues/182
Howdy all, i've forked an done the changes that @Rautec mentioned. (thanks for the great ideas guys) https://github.com/uofmmike/phonegap-facebook-plugin
Changes to be committed: modified: AndroidManifest.xml modified: build.gradle new file: libs/android-support-v13.jar (stolen from push plugin) deleted: libs/android-support-v4.jar modified: project.properties
https://github.com/uofmmike/phonegap-facebook-plugin/commit/dc1f660aefc44dace7bb1af76b48752c26e91f81
And here's a copy of push without the line mentioned https://github.com/uofmmike/PushPlugin
(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. :+1:
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 platforms/android/libs
solved this problem for me!
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.
root level build.gradle:
configurations {
all*.exclude group: 'com.android.support', module: 'support-v4'
}
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