Facebook 和 google 地图插件无法在 PhoneGap 应用程序中协同工作

Facebook and google maps plugins don't work together in PhoneGap app

我将创建显示 google 地图并需要使用 Facebook 进行社交登录的应用程序。 我决定使用: https://github.com/Wizcorp/phonegap-facebook-pluginhttps://github.com/wf9a5m75/phonegap-googlemaps-plugin 我不知道是什么原因,但这些插件完全可以单独使用,但是当我将它们安装在一起时,我遇到了下一个错误:

BUILD FAILED
C:\Users\{USER_NAME}\AppData\Local\Android\sdk\tools\ant\build.xml:577: Jar mismatch! Fix your dependencies
Total time: 1 second
{APP_PATH}\platforms\android\cordova\node_modules\q\q.js: 126
                    throw e;
                          ^
Error code 1 for command: cmd with args: /s /c "ant debug -f {APP_PATH}\platforms\android\build.xml -Dout.dir=ant-build -Dgen.absolute.dir=ant-gen"
ERROR running one or more of the platforms: Error: {APP_PATH}\platforms\android\cordova\run.bat: Command failed with exit code 8
You may not have the required environment or OS to run this project

我没有 PhoneGap 开发经验,但我猜这两个插件都在对平台依赖性进行一些更改(并重写另一个插件的更改)。 有人可以帮我解决这个问题吗?

我得到了 google-地图插件创建者的回答:

The facebook plugin contains android-support-v4.jar, and the map plugin installs another android-support-v4.jar.

Remove one of them.

我从 com.phonegap.plugins.facebookconnect 文件夹中删除 android-support-v4.jar 并将其留在 libs 文件夹中。它解决了我的问题(fb 和 g-maps 一起工作)。 所以我现在可以将这个问题标记为已关闭。 我把这个答案留给像我一样遇到这个问题的人。