Version: 2021.3
Introducing Android Library Projects and Android Archive plug-ins
Import an Android Archive plug-in

Import an Android Library Project

This page describes how to import an Android Library Project into your Unity Project.

  1. Copy the Android Library Project to your Unity Project’s Assets folder.
  2. If the Android Library Project root folder doesn’t use the .androidlib extension, add this extension to the folder. For example, mylibrary.androidlib.

Unity now supports the Android Library Project and will include it in the final project that Gradle uses to build your application. For more information, see How Unity builds Android applications.

其他资源

  • [Call Java and Kotlin plug-in code from C# scripts]android-plugins-java-code-from-c-sharp)
Introducing Android Library Projects and Android Archive plug-ins
Import an Android Archive plug-in