proton:android_setupv3
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
proton:android_setupv3 [2022/04/13 05:35] – seth | proton:android_setupv3 [2022/08/01 06:06] (current) – seth | ||
---|---|---|---|
Line 5: | Line 5: | ||
This is a lot easier than it used to be. | This is a lot easier than it used to be. | ||
- | * Install Android Studio | + | * Install |
* Make sure everything is working by creating a project using its " | * Make sure everything is working by creating a project using its " | ||
* Edit the local.properties file in AndroidGradle dir and change RTappID value to your app android package id, and sdk.dir should be set to your Android SDK dir. The package ID must match the one set inside your App.h | * Edit the local.properties file in AndroidGradle dir and change RTappID value to your app android package id, and sdk.dir should be set to your Android SDK dir. The package ID must match the one set inside your App.h | ||
+ | * local.properties also has settings for your cert and passwords if needed, this is needed to do release builds for testing, even if Google signs the bundle for you later, I find this is needed to test final releases locally anyway | ||
* Edit AndroidGradle\app\src\main\cpp\CMakeLists.txt and add/remove the C++ files used. | * 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. | * You should now be able to click build and play or debug. | ||
Line 14: | Line 15: | ||
* Notice that PrepareResources.bat is run when you build a project, it copies assets from bin/ | * Notice that PrepareResources.bat is run when you build a project, it copies assets from bin/ | ||
- | * You probably want to edit the App/ | + | * You probably want to edit the app display title and permissions in App/ |
* Note that Main.java is project specific, but the other java files are copied from / | * Note that Main.java is project specific, but the other java files are copied from / | ||
- | * To replace the proton | + | * To replace the app icon, in Android Studio right-click the res folder and select New > Image Asset. |
* In Android Studio, I like to choose Run-> | * In Android Studio, I like to choose Run-> | ||
Line 26: | Line 27: | ||
* Run " | * Run " | ||
+ | == Errors and problems == | ||
+ | * If you get a weird " | ||
(this is under construction and github may not reflect these latest changes yet) | (this is under construction and github may not reflect these latest changes yet) | ||
proton/android_setupv3.1649828136.txt.gz · Last modified: 2022/04/13 05:35 by seth