Skip to content

Troubleshooting Android Bindings Issues

Jonathan Pobst edited this page Feb 7, 2024 · 24 revisions

Official Android Bindings Library Documentation:

Getting Started

  • Helpful Tools - Some helpful tools for investigating. **DIAGNOSTIC MSBUILD LOG IS A MUST**
  • Glossary - Some common terms used with binding projects.
  • Understanding the Binding Pipeline - Understanding the various steps performed in the binding process can help determine where issues are occurring and how to fix them.
  • Metadata Cheat Sheet - Quick reference for commonly used metadata constructs.

Common Binding Issues:

Binding Warnings

Note: Modern development best practices suggest projects should use "warnings as errors" features to ensure that all warnings are rectified. Android bindings projects generally do not play nice with this practice. The tooling will report any Java API that it struggles with as a warning for visibility. In these cases, the API is removed from the binding to ensure the binding compiles and works. The warnings do not affect the correctness of the resulting binding. Unless the removed API is something you need to access from C# it is recommended to ignore the warnings.