Embedding .NET in Java

In some cases, you may want to add a Xamarin .NET library to an existing native Android project. To do this, you can use the Embeddinator-4000 tool to turn your .NET library into a native library that can be incorporated into a native Java-based Android app.


To use the Embeddinator-4000 with Java on Android, you will need the following:

You can use Visual Studio to edit and compile your C# code.

Using the Embeddinator-4000

To consume a .NET library in a native Android project, you use the following steps:

  1. Create a C# Android Library project.

  2. Install Embeddinator-4000 via NuGet.

  3. Run Embeddinator on the Android library assembly.

  4. Use the generated AAR file in a Java project in Android Studio.

These steps are described in detail in the Embeddinator-4000 documentation.