可以参考源自https://mp.csdn.net/postedit
1.compile替换成implementation,但是当引用第三方库,且第三方库又有依赖compile其他库时,将compile替换成api
2.gradle.properties文件中添加android.enableAapt2=false,没有这个文件请新建该文件
3.multidex报错直接删除掉
repositories {
google()//新增的
jcenter()
}
- 1
- 2
- 3
- 4
项目级的build.gradle文件中的有两个repositories节点,都配置上google()
4.lambda引用去掉
5.configdefealt下面添加 javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } }