I tried to reinstall latest version of Unity, Android SDK, and JDK, but real reason was my Comodo Antivirus that blocked any java files used by Unity - the problem of 'unable to find suitable jdk installation' was solved after I added these files in trusted list and temporary deactivate Auto-Sandbox mode of antiviris!
I installed Unity version 2019.3.1f1 from the unity Hub and I selected android sdk and jdk while installing from Hub. I have set the variable path in enviroment variables same as in unity: After opening a project in Unity it gives me this error: Warning Log1: Failed to determine … The JDK is a development environment for building applications, applets, and components using the Java programming language. If you do not already have the JDK software installed or if JAVA_HOME is not set, the GlassFish ESB installation will not be successful.
1.
Use the Unity Hub to install Android Build Support and the required dependencies: Android SDK & NDK tools, and OpenJDK.
The following tasks provide the information you need to install the JDK software and set JAVA_HOME on UNIX or Windows systems. Installing the JDK Software and Setting JAVA_HOME. End users and developers looking for free JDK versions: Oracle OpenJDK offers the same features and performance as Oracle JDK under the GPL license. Java SE Development Kit 8 Downloads.
Oracle Customers and ISVs targeting Oracle LTS releases: Oracle JDK is Oracle's supported Java SE version for customers and for developing, testing, prototyping or demonstrating your Java applications. Install Android Build Support and the Android SDK & NDK tools.
Thank you for downloading this release of the Java™ Platform, Standard Edition Development Kit (JDK™).
If you have manually installed the JDK and do not want to duplicate the installation, you can specify the location in the Unity Preferences window. Looking for Oracle OpenJDK builds? See AndroidSdkVersions for details. Note: Unity supports Android 4.4 “KitKat” and above.
By default, Unity installs a Java Development Kit based on OpenJDK. Unity recommends that you use the JDK installed with the Android build tools, to ensure that you receive the correct version and configuration.