Hi, you should always look at full error messages instead of only the first line. The first issue was definitely not caused by java and most (if not all) of JDK 8 versions should’ve worked for you. There must have been some errors related to the plugins. “CommandInvokationFailure: Gradle build failed. C:/Program Files/Java/jdk1.8.0_221\bin\java.exe” simply means that gradle build failed while executing java, it does not necessarily mean the java version is wrong.
Now if you are not getting any errors when building, but the application crashes on start, check the device log. The easiest way to check it is using Android Studio, but you can also use adb command directly and see the logcat there. With Unity 2019.1 there is even a package which allows to see the log from the device inside the editor Android Logcat Package Feedback