proton:android_setupv3
This is an old revision of the document!
Before going in to compilation details check what you need to know about the Android projects in general.
Compiling for Android from Windows
This is a lot easier than it used to be.
- Install Android Studio
- Make sure everything is working by creating a project using its “Native C++” template. It will automatically download Gradle and the NDK, you should be able to run it on a simulator device and real Android device plugged in.
- Edit the local.properties file in AndroidGradle dir and change the values there. RTappID is the android package id, and sdk.dir should be set to your Android SDK dir.
- Edit AndroidGradle\app\src\main\cpp\CMakeLists.txt and add/remove the C++ files used.
- You should now be able to click build and play or debug.
Tips:
- Notice that PrepareResources.bat is run when you build a project, it copies assets from bin/interface (etc) to android directories.
- You probably want to edit the App/AndroidManifest.xml file. Don't change the RTAndroidApp app id anywhere, it's automatically replaced when you build with what is set in local.properties.
- Doing release builds? local.properties also has the place to set your signing key stuff.
(this is under construction and github may not reflect these latest changes yet)
proton/android_setupv3.1649245424.txt.gz · Last modified: 2022/04/06 11:43 by seth