Closed ljzj2 closed 7 months ago
is there auto fix feature? since there is 396 errors in sdk. it is too hard to fix one by one
Unfortunately not. Due to differences in Java and C#, there are cases where we do not have enough information to determine the correct thing to do.
If you are only using part of the API, the easiest thing to do is to <remove-node>
API that you aren't using that are causing issues.
My guess is if you look at the C#
IBaseInterface1.AddLisenter
it will have a different method signature thanBluetoothBle.AddListener
, likely thelistener
parameter was changed to be of typeJava.Lang.Object
because we don't really support binding Java generics.If so, you will need to change the
BluetoothBle.AddListener
parameter to also beJava.Lang.Object
usingmetadata
:https://learn.microsoft.com/en-us/xamarin/android/platform/binding-java-library/customizing-bindings/java-bindings-metadata#managedtype