Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrules44 committed Aug 2, 2024
1 parent 10f3a0e commit 830ef54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions platform/android/Rtt_AndroidAppPackager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ AndroidAppPackager::Build( AppPackagerParams * params, const char * tmpDirBase )
gradleGo.append(" && cd template &&");

#if defined(Rtt_MAC_ENV) || defined(Rtt_LINUX_ENV)
bool java11Installed = 0 == system("JAVA_VERSION=11 /usr/bin/java -version > /dev/null 2>/dev/null");
if(java11Installed) {
gradleGo.append(" ./setup.sh && JAVA_VERSION=11 ./gradlew");
bool java17Installed = 0 == system("JAVA_VERSION=17 /usr/bin/java -version > /dev/null 2>/dev/null");
if(java17Installed) {
gradleGo.append(" ./setup.sh && JAVA_VERSION=17 ./gradlew");
} else {
Rtt_TRACE_SIM(("WARNING: Java 11 does not seems to be available. If build fails, install Java 1.11."));
gradleGo.append(" ./setup.sh && ./gradlew");
Expand Down

0 comments on commit 830ef54

Please sign in to comment.