Add the java api to build.gradle