question

AdamP-2656 avatar image
0 Votes"
AdamP-2656 asked LeonLu-MSFT commented

Xamarin.Android binding project issue after update to VS2022

Hi,

we have a Xamarin app with a Xamarin Binding project that references some aar and jar files. Everything works fine as long as we compile the Xamarin Binding project with VS 2019, which uses Xamarin.Android version 12.0.0. We can't build the same project with VS 2022, which uses a newer Xamarin.Android version 12.3.0. It seems to me that the C# generator or parser has changed and for some reason a nested Java class is no longer exported (not present in \obj\Debug\api.xml) and a static method that references this type is also missing. Does anyone have any tips on how to proceed? Thanks

dotnet-xamarin
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Usually, some reference type can't be found or missing in the binding project, due to referenced type having been obfuscated or a referenced type was private in the Java library, in which case transformations can make it public (or unobfuscated). You can refer to this thread: https://docs.microsoft.com/en-us/xamarin/android/platform/binding-java-library/troubleshooting-bindings#possible-causes-2

0 Votes 0 ·

0 Answers