user173724 user173724 - 1 month ago 35
Android Question

Gradle build failing on CI server, but not in android studio

I am trying to set up a CI build system with Travis CI. When I build on my laptop with Android studio, everything is peachy-keen.

But when I build on the CI system, it returns this:


A problem occurred evaluating project ':FtcRobotController'.

> java.lang.UnsupportedClassVersionError: com/android/build/gradle/LibraryPlugin : Unsupported major.minor version 52.0


Now I know next to nothing about android development. (This project is the java equivalent of Arduino, everything in a neat little library for people who don't know android), but this seems really off. Can someone provide be some assistance.

Kai Kai
Answer

What version of java is on your build server? As far as I know the:

Unsupported major.minor version 52.0 Error

Can be resolved by installing the Java 8 JDK

Edit by question poster: just add

jdk:
  - oraclejdk8 

to the .travis.yml file right under the portion of the file where the language in specified.