UnityAndroidToasty
Sample to solve Android dependent library by gradle.
- Unity Project: UnityAndroidToasty
- Android Project: ToastyWrapper
Requirements
- Unity2021.3.4f1
- Android Build Support Module
- Android Studio Chipmunk
How to build
-
copy
classes.jar
in Unity Editor toToastyWrapper/unity/libs/
-
copy
UnityPlayerActivity.java
in Unity Editor toToastyWrapper/unity/src/main/com/unity3d/player/
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