When building an app or module with Titanium 9.0.0, the build will fail if JDK 14 is installed.
Titanium 8.3.x builds fine with JDK 14... except for Hyperloop builds:
Steps to reproduce:
- Install JDK 14.
- Create a Titanium app project.
- Build with Titanium 9.0.1 for Android. (9.0.1 supports JDK 13.)
As of Titanium 9.0.0, we now build with gradle.
We need to upgrade gradle to v6.3.0 which recently added JDK 14 support.
In folder titanium_mobile/android, execute below command line to upgrade gradle wrapper files.
We should also update our com.android.tools.build:gradle tool to version 3.6.2 for files...
You can have multiple JDK installations on Mac. You can list the JDK versions installed by entering the following at the command line.
You can select which installed JDK version to use by entering the following at the command line. You'll need to set the <JavaVersion> to what's installed, which the above command line will list. The below can be set in your .bash_profile file.
Downgrade to JDK 13 for Titanium 9.0.1.
Downgrade to JDK 12 for Titanium 9.0.0. (See
(JDK 8 is the min version needed.)