If JDK 12 or higher is installed, Hyperloop fails to generate a working proxy for Java enum types which will cause a runtime error when used.
Steps to reproduce:
- Set up the system with JDK 12 or higher.
- Build and run hyperloop-examples on Android.
- Tap on "Blur" in the list.
- Notice the below exception occurs.
If the above error did not occur, then that means a valid Java class metabase file was generated by JDK 11 or older and hyperloop is re-using it. Search for the following line in the build log and delete the file it references.
How to change JDK version on Mac:
Entering the following at the command line will list all JDK versions installed on Mac...
You can switch JDK versions used on Mac by entering the following.
(Make sure to replace <JdkVersion> below.)
Use JDK 11 instead.