Copy the Android Library Project to your Unity Project’s Assets folder.
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 GradleAn Android build system that automates several build processes. This automation means that many common build errors are less likely to occur. More info See in Glossary uses to build your application. For more information, see How Unity builds Android applications.
Configure Android Library Project
Android Library Project is a dependency of a built-in module unityLibrary. You can change this default behavior. For example, you can configure Android Library Project to depend on unityLibrary instead. To do this, use the following steps:
In the Project window, select the .androidlib plug-inA set of code created outside of Unity that creates functionality in Unity. There are two kinds of plug-ins you can use in Unity: Managed plug-ins (managed .NET assemblies created with tools like Visual Studio) and Native plug-ins (platform-specific native code libraries). More info See in Glossary to access the InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info See in Glossary window.
Set Built-in Dependee to None
In your plugin’s build gradle’s dependencies scope, add: