我正在研究科尔多瓦应用程序。
安装
cordova-plugin-google-analytics
(https://github.com/danwilson/google-analytics-plugin)
后,我的构建开始失败并显示错误代码
Multiple dex files define Landroid/support/annotation/AnimRes
在花了几个小时解决和谷歌搜索后,我很确定这与
phonegap-facebook-plugin(https://github.com/Wizcorp/phonegap-facebook-plugin/)的冲突有关,
因为 phonegap-facebook-plugin 使用android-support-v4
jar
解决方案之一是删除android-support-v4
,但这对我不起作用(如果 facebook 只需要这个 jar 怎么办..)
另一个解决方案是创建build-extras.gradle
包含一些内容的文件(不记得) - 也失败了
一些解决方案与 Android Studio 的东西有关,我不使用 Android Studio,我不能使用它。我是从命令行构建的。
有谁知道我可以尝试的另一种解决方案?
提前致谢