C# Xamarin Java.Interop error?

前端 未结 8 1859
一向
一向 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 17:49

    In my case it was a bit different, I couldn't find monoandroid folder in

    C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework. 
    

    So on further I searched and found it in

    C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid
    

    This might be the case with someone else.

提交回复
热议问题