In 2020, will Appium will work with JDK8?

Environment:
Mac OS X Catalina 10.15
openjdk 14.0.2 2020-07-14
OpenJDK Runtime Environment (build 14.0.2+12-46)
OpenJDK 64-Bit Server VM (build 14.0.2+12-46, mixed mode, sharing)
Appium 1.18.1
Android Debug Bridge version 1.0.41
Version 30.0.4-6686687

Problem:

My problem is common and I am sure a lot of us faced this issue. Sdkmanager is bugging with Java14.

% sdkmanager --version

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema

at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)

at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)

at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)

at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)

at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)

Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema

at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)

at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)

... 5 more

I saw so many people asking for solution, I tried some of them but it didn’t fix my issue.
I read many people recommend to downgrade to Java8.

Will Java 8 disturb the behavior of last Appium 1.18.1 and add?

How did you fix this issue guys?

I am using the below configuration and it’s working fine with JAVA 8.

java version “1.8.0_241”

Java™ SE Runtime Environment (build 1.8.0_241-b07)

Java HotSpot™ 64-Bit Server VM (build 25.241-b07, mixed mode)

  • MAC OS Catalina
  • appium 1.18.0