android - MonoForAndroid : android-support-v4. jar编译问题

标签 android mono xamarin.android

我刚刚更新到 Mono 4.4.41,并且收到与包含 android-support-v4.jar 文件相关的编译错误。我收到的编译错误:

You have Jar libraries, android-support-v4.jar, that have the identical name with inconsistent file contents. Please make sure to remove any conflicting libraries in EmbeddedJar, InputJar and AndroidJavaLibrary.

错误发生在 Novell.MonoDroid.Common.targets(MonoDroid 的一部分,不是我的项目的一部分)的第 344 行,它在其中检查重复的 jar 文件。

在上次更新之前,我已经使用支持库数周了,没有出现任何问题。我按照以下说明将其添加到我的项目中: http://docs.xamarin.com/Android/Guides/Platform_Features/Fragments/Part_4_-_Providing_Backwards_Compatibility_with_the_Android_Support_Package

最佳答案

从项目中删除支持库 jar 可以解决此问题。看来 Android 版 Mono 现在会自动将支持库绑定(bind)到构建中,这会导致构建中出现重复的 jar 文件。我浏览了最近的发行说明,这是我能找到的所有听起来相关的内容:

"Binding Projects now embed the bound .jar into the binding assembly."

来自: http://docs.xamarin.com/android/releases/Mono_For_Android_4/Mono_for_Android_4.2.8

关于android - MonoForAndroid : android-support-v4. jar编译问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13850409/

相关文章:

ubuntu - 在 Ubuntu 14.04 LTS 上安装 Mono 3.4.0 和 MonoDevelop 4.2.2

linux - Mono 2.8中通过 "Package for Linux"创建包的问题

android - 如何获取播放音频文件的音频路径?

安卓喷气背包 : RecyclerView is not updating when LiveData is set

android - 如何跟踪在 Linux 内核中调用 memcpy() 的时间?

c# - 使用 XSP4 在 Monodevelop 中调试 ASP.NET MVC 应用程序

generics - Monodroid 泛型不是协变的?

windows-phone-7 - Xamarin Monotouch 是否可以在 Microsoft Windows Phone 移动版上运行?

android - 在 Xamarin.Forms 中处理 Android 推送通知操作

java - 我想将数据 Activity 发送到 fragment ,但从未调用过 InterFace 方法