-
Notifications
You must be signed in to change notification settings - Fork 537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binding to AAR library 'com.sunmi printerlibrary' gives lots of 'Class has invalid base type' errors #6352
Comments
I'm not sure why all my version info disappeared, but here it is: Microsoft Visual Studio Community 2019 Installed Version: Community ADL Tools Service Provider 1.0 ASA Service Provider 1.0 ASP.NET and Web Tools 2019 16.11.75.64347 ASP.NET Web Frameworks and Tools 2019 16.11.75.64347 Azure App Service Tools v3.0.0 16.11.75.64347 Azure Data Lake Node 1.0 Azure Data Lake Tools for Visual Studio 2.6.1000.0 Azure Functions and Web Jobs Tools 16.11.75.64347 Azure Stream Analytics Tools for Visual Studio 2.6.1000.0 C# Tools 3.11.0-4.21403.6+ae1fff344d46976624e68ae17164e0607ab68b10 Common Azure Tools 1.10 ConvertToDevExtremeCommand Extension 1.0 DevExpress Reporting Extension 1.0 DevExpress Reporting Tools Extension 1.0 DevExpress.DeploymentTool 1.0 Extensibility Message Bus 1.2.6 (master@34d6af2) Fabric.DiagnosticEvents 1.0 IntelliCode Extension 1.0 Microsoft Azure HDInsight Azure Node 2.6.1000.0 Microsoft Azure Hive Query Language Service 2.6.1000.0 Microsoft Azure Service Fabric Tools for Visual Studio 16.10 Microsoft Azure Stream Analytics Language Service 2.6.1000.0 Microsoft Azure Stream Analytics Node 1.0 Microsoft Azure Tools for Visual Studio 2.9 Microsoft Continuous Delivery Tools for Visual Studio 0.4 Microsoft JVM Debugger 1.0 Microsoft Library Manager 2.1.113+g422d40002e.RR Microsoft MI-Based Debugger 1.0 Microsoft Visual Studio Tools for Containers 1.2 Mono Debugging for Visual Studio 16.10.15 (552afdf) NuGet Package Manager 5.11.0 ProjectServicesPackage Extension 1.0 Razor (ASP.NET Core) 16.1.0.2122504+13c05c96ea6bdbe550bd88b0bf6cdddf8cde1725 SQL Server Data Tools 16.0.62107.28140 ToolWindowHostedEditor 1.0 TypeScript Tools 16.0.30526.2002 Visual Basic Tools 3.11.0-4.21403.6+ae1fff344d46976624e68ae17164e0607ab68b10 Visual F# Tools 16.11.0-beta.21322.6+488cc578cafcd261d90d748d8aaa7b8b091232dc Visual Studio Code Debug Adapter Host Package 1.0 Visual Studio Container Tools Extensions 1.0 Visual Studio Tools for Containers 1.0 Visual Studio Tools for Kubernetes 1.0 VisualStudio.DeviceLog 1.0 VisualStudio.Foo 1.0 VisualStudio.Mac 1.0 Xamarin 16.11.000.175 (d16-11@e140e23) Xamarin Designer 16.11.0.17 (remotes/origin/11e0001f0b17269345e80b58fb3adf1ba4efe2cd@11e0001f0) Xamarin Templates 16.10.5 (355b57a) Xamarin.Android SDK 11.4.0.5 (d16-11/7776c9f) Xamarin.iOS and Xamarin.Mac SDK 14.20.0.25 (3b53e529b) |
This means there is something wrong trying to bind the There is a lot of information about debugging this issue here: https://github.com/xamarin/java.interop/wiki/Troubleshooting-Android-Bindings-Issues. You will need to examine the diagnostic build log and find the message telling you what issue it is hitting binding |
Thanks, I'll try that and update this issue if I'm able to resolve it or not. |
Thanks a lot @jpobst!, I got that fixed 😊
Any easy way to fix that via Metadata.xml or otherwise? Or maybe it's not really an issue at all and I can ignore it? 🤔 |
They are warnings, so you can ignore them if you want. We added this metadata to allow you to fix them, but I don't think it ever got properly documented: dotnet/java-interop#701 |
Thanks again, @jpobst! I tried to use that but I got this error:
Hopefully this will work just fine with the warnings. I'll give it the good old college try! Thanks for the excellent help! |
You would probably need to change the Glad you got it working! |
@jpobst Just for the record: You were right, setting the visibility to protected made everything work as a charm! Peace out! Thanks so much for the extremely helpful tips and lightning speed! 🙏 |
Error Message or Issue
warning BG8103: Class 'Com.Sunmi.Peripheral.Printer.InnerLcdCallback' has invalid base type 'com.sunmi.peripheral.printer.ILcdCallback.Stub'.
(There's also lots of other classes with invalid base types...)
Version Information
N/A
Other Helpful Info
printerlibrary-1.0.14.aar.zip
Please note that the aar file is just renamed to aar.zip - it's not actually a zip file!
The text was updated successfully, but these errors were encountered: