How add gradle plug-in in jar file
Find the jar file and put it inside app/libs. Meanwhile add the following to build.gradle for the whole project.
buildscript { repositories { mavenLocal() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.1.2' //classpath fileTree(dir: 'libs', include: ['*.jar']) //classpath 'me.tatarka:gradle-retrolambda:3.2.4' //加上这句依赖,这会使用retrolambda来编译Java代码 classpath fileTree(dir: 'app/libs', includes: ['gradle-retrolambda-3.2.4.jar']) // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }