"Gradle Build Failed" when building for Android

I was trying to build my AR game for Android. I fixed an error claiming that unity could not find my SDK by using the solution in this thread, and it seemed to work as the process got farther before giving an error. I get this error when trying to build and run now (it gets through detecting my phone plugged in and seems to do most of the building then the error is thrown at the end):