This page describes how to import an Android Library Project into your Unity Project.
.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.