C# Xamarin Java.Interop error?

前端 未结 8 1838
一向
一向 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:52

    These errors are not due to a problem with the solution or the references. They are a by-product of other changes that seem to confuse tools like ReSharper. At least this is correct in my case, my solution still compiles and functions without manually referencing any Reference Assemblies.

    There is a Xamarin bug report for this but they determined this to be an external issue with ReSharper as per my experience.

    Rather than manually adding references to the project you can also tell ReSharper to simply ignore the errors by opening:

    ReSharper -> Windows -> Solution Errors
    

    And then ignoring the issues here.

提交回复
热议问题