Unity 3D Gradle Build Failed

I’m trying to build to my Android phone to test my game currently but whenever I do I get the error that the Gradle build failed. I’ve fixed the tools folder for the Android SDK, tried different JDK’s, and played around with some of the build settings. If anyone could help with what might be the preventing my build I would appreciate the help.

.

JDK’s I have tried:

1.7.60

1.8.141

1.8.151

1.8.161

9.01

9.04

.

Unity Version 2017.3.0f3

.

Error Messages:

Message 1

Message 2

Try changing from Gradle to Internal in the building settings

alt text