Dev Version 0.1.0
Engine: Unity 6000.0.26f1
Gradle: 8.4
Android Gradle Plugin: 8.3.0
JDK: OpenJDK Java17
Suggist Unity Android Project Export Path :
YourUnityProjectFolder/Build/Android
- Make Unity Project
- Download this Template
- Put it to Assets/Plugins/Android Path
- Rename Root Folder to "xxxxx.androidlib"
- Select xxxxx.androidlib in Unity
- Check Unity Inspector ,Change "Select dependent module" to None
- Open Unity BuildProfile Panel, Export Android Project
- Run Android Project in Android Studio
- Edit your Android Lib
- Execute MCopyAndroidLibToUnity Update UnityProject File
Auto Copy AndroidLib To Unity
In build.gradle script :
task MCopyAndroidLibToUnity(type: Copy)
{
from '../UnityAndroidLibTemplate.androidlib'
into '../../../Assets/Plugins/Android/UnityAndroidLibTemplate.androidlib'
}