C# Xamarin Java.Interop error?

前端 未结 8 1839
一向
一向 2021-02-07 17:08

Hello since the last Xamarin update we get this error.

CS0012 The type \'IJavaPeerable\' is defined in an assembly that is not r

8条回答
  •  误落风尘
    2021-02-07 18:07

    You can directly copy the assembly Java.Interop.dll from the C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0 to the bin/Debug folder of your project to resolve the issue.

    This procedure perfectly worked for me.

    Thanks,

提交回复
热议问题