【问题标题】:"Can't Write" error on xamarin formsxamarin 表单上的“无法写入”错误
【发布时间】:2017-08-02 22:50:35
【问题描述】:

有人已经看到这个错误了吗? 它发生在我在我的 Forms 项目的 Android 项目中安装 Geolocator 之后......

严重性代码描述项目文件行抑制状态 错误无法写入 [C:\Users\Indefinido\AppData\Local\Temp\mainDexClasses-10575.tmp.jar](无法读取 [C:\Users\Indefinido\AppData\Local\Xamarin\Xamarin.Android. Support.v4\23.3.0.0\embedded\classes.jar] (重复的 zip 条目 [classes.jar:android/support/v4/view/ViewCompat$JbMr1ViewCompatImpl.class])) neoFly_Montana.Android C:\montana\neoFly_Montana\neoFly_Montana \neoFly_Montana.Android\CREATEMULTIDEXMAINDEXCLASSLIST

【问题讨论】:

  • 请勿将错误和代码发布为图像!!!请花时间粘贴和格式化文本,以便搜索引擎可以阅读和索引。还可以考虑在发布之前进行搜索 - “重复的 zip 条目”已经有多个点击可能有用
  • 非常感谢'-'
  • 你的Geolocator 版本是什么?
  • 尝试将您的 nuget 包更新到最新版本。
  • 成功了,非常感谢

标签: android ios xamarin compiler-errors xamarin.forms


【解决方案1】:

这是在我在 Android 项目中安装 Geolocator 之后发生的。

我认为您安装了最新的Geolocator nuget 包,而Geolocator 包包含一些其他依赖项,例如support.v4

重复的 zip 条目

在你安装了Geolocatornuget包后,你的项目中使用的一些库有两个版本,这可能会产生这个问题。

更新你的nuget包到最新版本,这样包版本就可以解决了。

【讨论】:

  • 是的,问题就在这里!谢谢你!
猜你喜欢
  • 2017-09-23
  • 2018-03-13
  • 1970-01-01
  • 2021-01-28
  • 2018-11-22
  • 2017-03-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多