Issues with Android development

Hi, so I’m on Pop_OS which is just Ubuntu 17.10 as the base. First, I’m trying to build and I have openjdk-9-jdk installed through apt-get. However, when I try selecting the directory where its installed, I keep getting this;

The path you specified does not look like a valid JDK installation.
Android development requires at least JDK 8 (1.8), having JRE only is not enough. Please make sure you are selecting a suitable JDK home directory, or download and install the latest JDK:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

I tried selecting the root, the bin directory, the lib, nothing seems to work. I keep getting that error.

This person seems to be having the same issue;

Next, I’m trying to use the Android remote and I can’t seem to get my dist and my note 8 to connect, and I keep getting this image;

Any help would be appreciated.

Can anyone help with this? I still can’t build to android, here are some exceptions I get when I switch to android target

GooglePlayServices.JavaUtilities+ToolNotFoundException: jar not found, /usr/lib/jvm/java-1.8.0-openjdk-amd64 references incomplete Java distribution.
  at GooglePlayServices.JavaUtilities.FindJavaTool (System.String javaTool) [0x00057] in <4988cb4c158d4971989a7eb4c105c164>:0
  at GooglePlayServices.JavaUtilities.get_JarBinaryPath () [0x00000] in <4988cb4c158d4971989a7eb4c105c164>:0
  at GooglePlayServices.DefaultResolver.ExtractAar (System.String aarFile, System.String[] extractFilenames, System.String outputDirectory) [0x0003b] in <4988cb4c158d4971989a7eb4c105c164>:0
UnityEngine.Debug:LogError(Object)
GooglePlayServices.DefaultResolver:ExtractAar(String, String[], String)
GooglePlayServices.ResolverVer1_1:ShouldExplode(String)
GooglePlayServices.ResolverVer1_1:LoadAarExplodeCache()
GooglePlayServices.ResolverVer1_1:.ctor()
GooglePlayServices.PlayServicesResolver:.cctor()
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()

3756169--312889--upload_2018-10-5_15-37-23.png

Also this

Failed to get Java version when running /usr/lib/jvm/java-1.9.0-openjdk-amd64/bin/java
It is not be possible to verify your Java installation is new enough to compile with the latest Android SDK

Successfully executed '/usr/lib/jvm/java-1.9.0-openjdk-amd64/bin/java -version'
stdout:

stderr:
openjdk version "9-Ubuntu"
OpenJDK Runtime Environment (build 9-Ubuntu+0-9b181-4)
OpenJDK 64-Bit Server VM (build 9-Ubuntu+0-9b181-4, mixed mode)

exit code: 0

UnityEngine.Debug:LogWarning(Object)
Google.Logger:Log(String, LogLevel)
GooglePlayServices.PlayServicesResolver:Log(String, LogLevel)
GooglePlayServices.JavaUtilities:LogJdkVersionFailedWarning(String, String)
GooglePlayServices.JavaUtilities:CheckJdkForApiLevel()
GooglePlayServices.PlayServicesResolver:ResolveUnsafe(Action`1, Boolean)
GooglePlayServices.<Resolve>c__AnonStorey11:<>m__19()
GooglePlayServices.PlayServicesResolver:ExecuteNextResolveJob()
GooglePlayServices.PlayServicesResolver:Resolve(Action, Boolean, Action`1)
GooglePlayServices.PlayServicesResolver:AutoResolve()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

Any idea why the Unity editor won’t choose the JDK? What’s the path I should be providing?