Sample to solve Android dependent library by gradle.
- Unity Project: UnityAndroidToasty
- Android Project: ToastyWrapper
- Unity2019.3.9f1
- Android Build Support Module
- Android Studio 3.6.2
-
copy
classes.jar
in Unity Editor toToastyWrapper/toastywrapper/libs/
see also https://docs.unity3d.com/Manual/AndroidUnityPlayerActivity.html -
build android library
$ cd ToastyWrapper $ ./gradlew clean build
-
publish android library to m2repository
$ ./gradlew publish
-
build app with unity