C# Xamarin Java.Interop error?

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

    I go the same error after the last update. You just have to add the reference to Java.Interop to resolve the problem.

    1. Go to your Android project
    2. Right Click in reference and choose "Add Reference"
    3. On Assembly, look for Java.Interop and add it
    4. Rebuild your project

    If you need some screenshots, I can provide them later.

提交回复
热议问题