apply plugin: 'java-library' dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) // AS 4.3.1 -> 4.0.1 没有问题 // As-3.4.1 + gradle-5.1.1-all + auto-service:1.0-rc4 compileOnly'com.google.auto.service:auto-service:1.0-rc4' annotationProcessor'com.google.auto.service:auto-service:1.0-rc4' // 帮助我们通过类调用的形式来生成Java代码 implementation "com.squareup:javapoet:1.9.0" // 引入annotation,处理@ARouter注解 implementation project(':arouter_annotation') } // java控制台输出中文乱码 tasks.withType(JavaCompile) { options.encoding = "UTF-8" } sourceCompatibility = "7" targetCompatibility = "7"