User Tools

Site Tools


proton:android_setupv3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
proton:android_setupv3 [2025/02/10 13:44] sethproton:android_setupv3 [2025/03/04 07:24] (current) seth
Line 21: Line 21:
  
  
-== Final builds ==+==== Final builds ====
  
 I find it easiest to do final builds from the command line.  I find it easiest to do final builds from the command line. 
Line 27: Line 27:
   * Run "BuildFinalBundles.bat" (or type "gradlew bundle" from the command-line.  Builds release and debug bundles in AndroidGradle\app\build\outputs\bundle <-- This is the only thing the Play Store will accept for submission now.  I recommend letting them sign your builds for you.   * Run "BuildFinalBundles.bat" (or type "gradlew bundle" from the command-line.  Builds release and debug bundles in AndroidGradle\app\build\outputs\bundle <-- This is the only thing the Play Store will accept for submission now.  I recommend letting them sign your builds for you.
  
-== Updating to the latest Android APIs as of Feb 10th, 2025 ==+==== Updating to the latest Android APIs as of Feb 10th, 2025 ====
  
 If you get errors like "Your build is currently configured to use incompatible Java 21.0.4 and Gradle 7.3.3. Cannot sync the project." you'll need to update things. If you get errors like "Your build is currently configured to use incompatible Java 21.0.4 and Gradle 7.3.3. Cannot sync the project." you'll need to update things.
Line 40: Line 40:
 To fix, edit your build.gradle file and change the part that says: To fix, edit your build.gradle file and change the part that says:
  
 +
 +<code>
 id 'com.android.application' version '7.2.1' apply false id 'com.android.application' version '7.2.1' apply false
 id 'com.android.library' version '7.2.1' apply false id 'com.android.library' version '7.2.1' apply false
-    +</code>    
 to: to:
  
 +<code>
 id 'com.android.application' version '8.8.0' apply false id 'com.android.application' version '8.8.0' apply false
 id 'com.android.library' version '8.0.2' apply false id 'com.android.library' version '8.0.2' apply false
 +</code>
  
 (or whatever the latest versions are, I had to google to find them( (or whatever the latest versions are, I had to google to find them(
Line 73: Line 77:
 Ok, that didn't fix the namespace error, to fix that, I had to add "namespace 'com.rtsoft.RTAndroidApp'" in the "android {" area, I just put it under the NDK version.  I know, this is all confusing and weird, you could look at RTBareBones's build.gradle file if need be.  For me it now build and played on the Android device fine. Ok, that didn't fix the namespace error, to fix that, I had to add "namespace 'com.rtsoft.RTAndroidApp'" in the "android {" area, I just put it under the NDK version.  I know, this is all confusing and weird, you could look at RTBareBones's build.gradle file if need be.  For me it now build and played on the Android device fine.
          
-== Other Errors and problems ==+==== JAVA_HOME missing when running .bat files like BuildAndInstallDebug.bat ==== 
 + 
 +To fix this you'll need to know where your java install is and set JAVA_HOME to it. 
 + 
 +Easiest thing is to use Android Studio’s bundled JDK, it’s usually located in a directory similar to: 
 +C:\Apps\androidstudio\jbr 
 + 
 +(Your path might be different; check your Android Studio settings under File > Project Structure > SDK Location or File > Settings > Build, Execution, Deployment > Build Tools > Gradle.) 
 + 
 + 
 + 
 +Open a Command Prompt and run: 
 +<code> 
 +set JAVA_HOME=C:\Apps\androidstudio\jbr 
 +</code> 
 +Then you can run the batch files in the same session and it should work. 
 + 
 +Or, to set it permenently: 
 + 
 +Right-click on This PC (or My Computer) and select Properties. 
 +Click on Advanced system settings. 
 +In the System Properties window, click on the Advanced tab, then click Environment Variables.... 
 +Under System variables, click New... (or find JAVA_HOME if it already exists and click Edit...). 
 +Set the Variable name to JAVA_HOME and the Variable value to your JDK path (e.g., C:\Apps\androidstudio\jbr). 
 +Click OK to save the changes. 
 +Optionally, add %JAVA_HOME%\bin to your PATH variable if it isn’t already there. 
 +Verify the Setup: 
 + 
 +Open a new Command Prompt (to ensure the new environment variables are loaded). 
 +<code> 
 +echo %JAVA_HOME% 
 +</code> 
 + 
 +==== Other Errors and problems ====
  
   * If you get a weird "clang++: error: no such file or directory" linker error, it's possible your paths are just too long.  Even with the max path Win 11 fix I had this issue with one particularly huge fmod library path, so something to keep in mind.   * If you get a weird "clang++: error: no such file or directory" linker error, it's possible your paths are just too long.  Even with the max path Win 11 fix I had this issue with one particularly huge fmod library path, so something to keep in mind.
proton/android_setupv3.1739195058.txt.gz · Last modified: 2025/02/10 13:44 by seth