您好,自上次 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
然后:
- 转到您的 Android 项目
- 右键单击引用并选择“添加引用”
- 浏览文件位置
- 添加并完成
如果仍然出错,请尝试重新构建您的项目
关于java - C# Xamarin Java.Interop 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37788326/