C# Xamarin Java.Interop error?

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

    You can found it here

    C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Java.Interop.dll

    then :

    1. Go to your Android project
    2. Right Click in reference and choose "Add Reference"
    3. Browse file location
    4. Add and done

    if you still get error, try to rebuild your project

提交回复
热议问题