java - C# Xamarin Java.Interop 错误?

标签 java c# xamarin

您好,自上次 Xamarin 更新以来,我们得到了这个错误

CS0012 The type 'IJavaPeerable' is defined in an assembly that is not referenced. You must add a reference to assembly 'Java.Interop, Version=0.1.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. ImageLibrary C:\Users\rutge\Source\Repos\GarderobeApp\ImageSwiper\ImageSwiper.cs 33 Active

有人知道这是什么意思吗?

最佳答案

你可以在这里找到它

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Java.Interop.dll

然后:

  1. 转到您的 Android 项目
  2. 右键单击引用并选择“添加引用”
  3. 浏览文件位置
  4. 添加并完成

如果仍然出错,请尝试重新构建您的项目

关于java - C# Xamarin Java.Interop 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37788326/

相关文章:

java - 关闭对话框后如何从对话框中获取数据?

c# - MVC中如何让访问者等待一个方法完成?

c# - 等待或 Task.FromResult

iphone - 完整的 Xamarin IDE 设置是什么样的?

ios - 在 Xamarin 中使用页面控件滚动图像

c# - 使用 async/await 仍然会阻止 Xamarin.Android 上的 UI

Java:WAITING从另一台服务器接收值(通过http?)

java - JFrames 中的 ActionListener

java - 尝试从手机获取 KML 节点值时获取空值,但在 Android 模拟器上则不行

c# - 主页错误,命名空间已存在