I have pushed the initial Gradle build system for Android to
gradle-kotlin-dsl
development branch.
It is still WIP.
I haven’t finished clean up the CMake build script to remove now old and redundant fixtures for Android build. I have only tested it on Linux host system with symlink workaround I mentioned in
https://github.com/urho3d/Urho3D/issues/743
.
The workaround only works when invoking gradle wrapper from the CLI (Still haven’t figured out how to prevent the Android plugin bug to manifest itself during Android Studio “gradle sync”). However, if you don’t modify the gradle build script in Android Studio editor then you should not see the problem at all. Please test the build system on Urho3D project only, or if you want to try it on your own project then make sure you have a proper backup plan due to symlink bug. You have been warned.
For CLI user, after checking out the development branch, cd to the Urho3D project root and run:
./gradlew build
For Android Studio user, open the project using the IDE. It should prompt you to auto-import the Gradle project.
Before building the project, press Ctrl+Alt+S and type “configure on demand” in the search box, locate the option and deselect it.