How to export .AAR without dependencies with Unity-classes.jar

Hi everyone,

I beginner for unity. I export .AAR from Android studio module. That module dependencies with Unity-classes.jar because some class in this module extend from UnityPlayerActivity

and import that .AAR to Asset->Plugins->Android in Unity. I got error (Image as below) when i tired to build app.

Please guide me how to export .AAR without dependencies with Unity-classes.jar or how to solve this problem

Thank for advance.

On Android Studio, type [Ctrl]+[Shift]+[Alt]+S to open Project Structure.
On the left menu, select your module. Click on the ‘Dependencies’ tab (last one).
Change the Scope of any dependency you don’t want to export to ‘Provided’.
Build your project and you’re done!