android-slim-bindings

Create slim Android native bindings for .NET MAUI projects.

15|2|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/Redth/maui-skillz --skill android-slim-bindings
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-slim-bindings
Source: https://github.com/Redth/maui-skillz/tree/main/.claude/skills/android-slim-bindings
Command: npx skills add https://github.com/Redth/maui-skillz --skill android-slim-bindings

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create and maintain slim/native platform interop bindings for Android in .NET MAUI and .NET for Android projects. Guides through creating Java/Kotlin wrappers, configuring Gradle projects, resolving Maven dependencies, generating C# bindings, and integrating native Android libraries using the Native Library Interop (NLI) approach. Use when asked about Android bindings, AAR/JAR integration, Kotlin interop, Maven dependencies, or bridging native Android SDKs to .NET.

Core Features & Use Cases

  • Guides the end-to-end process of building slim Android bindings, from Java/Kotlin wrappers to the final C# binding surface.
  • Covers Gradle project setup, AAR/JAR packaging, and Maven dependency resolution for robust interop.
  • Use Case: Bind a native Android SDK to a MAUI app by wrapping a small API surface and exposing it through a stable binding layer.

Quick Start

Initialize a new Android binding project structure, configure Gradle and AAR references, and apply Metadata.xml transforms to expose the desired APIs to .NET.

Frequently Asked Questions about android-slim-bindings

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build Android bindings for .NET MAUI using native Kotlin libraries?

Build Android bindings for .NET MAUI by creating Java/Kotlin wrappers, configuring Gradle builds, and resolving Maven dependencies to generate C# binding layers using the Native Library Interop approach. This enables wrapping native Android SDKs and exposing them through a stable binding layer directly to .NET applications.

What is the Native Library Interop approach for Android bindings?

Native Library Interop (NLI) is a technique for bridging native Android libraries to .NET. It guides the creation of slim Java/Kotlin wrappers, manages Gradle builds, and resolves Maven dependencies to package AAR/JAR files for generating the final C# binding surface. This approach streamlines the integration of native SDKs into .NET MAUI projects.

How do I resolve Maven dependencies for an Android AAR binding project?

Resolve Maven dependencies for Android AAR binding projects by configuring the Gradle project setup to manage and fetch required Java/Kotlin libraries. This ensures robust interop and correct AAR/JAR packaging before generating the C# binding surface and applying Metadata.xml transforms to expose the desired APIs to .NET.

Can I use Gradle and AAR files to bind a native Android SDK to a MAUI app?

Yes, you can bind a native Android SDK to a MAUI app by configuring Gradle and referencing AAR files. This process involves wrapping a small API surface in Java/Kotlin, resolving Maven dependencies, and applying Metadata.xml transforms to expose the desired APIs through a stable C# binding layer.

Why use slim Android bindings instead of wrapping the entire native SDK?

Slim Android bindings wrap only a small, necessary API surface rather than the entire native SDK, reducing complexity and maintenance overhead. By creating targeted Java/Kotlin wrappers and exposing them through a stable C# binding layer, you achieve robust interop without the bloat of binding unused APIs.