Xamarin.Android 中的错误局部变量类型不匹配 [英] Error local variable type mismatch, in Xamarin.Android

查看:24
本文介绍了Xamarin.Android 中的错误局部变量类型不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用我导入的 android 库在 Xamarin 中构建解决方案.

I am trying to build a solution in Xamarin with an android library that I imported.

该库来自一家名为 bbpos 的制造商.

The library come from a manufacturer called bbpos.

我收到以下错误消息:

Error com.android.dx.cf.code.SimException: local variable type mismatch: attempt to set or access a value of type java.lang.String using a local variable of type byte[]. This is symptomatic of .class transformation tools that ignore local variable information.

我认为它来自图书馆,但我不知道确切来自哪里.有没有办法知道问题出在哪里?

I think it comes from the library but i dont know from where exactly. Is there a way to know where is the problem ?

推荐答案

万一我帮助别人,我终于找到了解决方案.

In case it my help someone else i have finally found the solution.

事实证明是编译器出了问题.

It turns out the compiler was the problem.

我转到 Xamarin.Android 属性,然后转到 Android 选项选项卡.在 Dex 编译器字段中,我选择了 d8.

I went to the Xamarin.Android Properties, then went to the Android Options tab. In the Dex compiler field I selected d8.

这篇关于Xamarin.Android 中的错误局部变量类型不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆