课程仓库代码无法正常编译运行

来源:1-1 课前必读(不看会错过一个亿)

慕粉1643583087

2021-04-07

imooc_plugins分支按步骤操作无法正常编译
图片描述

Task :lib_base:compileDebugJavaWithJavac FAILED
Gradle may disable incremental compilation as the following annotation processors are not incremental: jetified-arouter-compiler-1.2.2.jar (com.alibaba:arouter-compiler:1.2.2), auto-service-1.0-rc2.jar (com.google.auto.service:auto-service:1.0-rc2).
Consider setting the experimental feature flag android.enableSeparateAnnotationProcessing=true in the gradle.properties file to run annotation processing in a separate task and make compilation incremental.
D:\AndroidStudioProjects\Test\imooc_refactor\lib_base\build\generated\aidl_source_output_dir\debug\compileDebugAidl\out\com\imooc\lib_base\service\audio\IAudioService.java:65: 错误: 不是语句
r
^
D:\AndroidStudioProjects\Test\imooc_refactor\lib_base\build\generated\aidl_source_output_dir\debug\compileDebugAidl\out\com\imooc\lib_base\service\audio\IAudioService.java:65: 错误: 解析时已到达文件结尾
r
^
D:\AndroidStudioProjects\Test\imooc_refactor\lib_base\build\generated\aidl_source_output_dir\debug\compileDebugAidl\out\com\imooc\lib_base\service\audio\IAudioService.java:66: 错误: 解析时已到达文件结尾
3 个错误

FAILURE: Build failed with an exception.

写回答

2回答

加菲猫的家

2021-06-17

加大运行内存,重新clean build

gradle.properties 里面

org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8


1
0

qndroid

2021-04-20

IAudioService 到这个类里,看一下是不是有语法错误。

0
0

还原大厂App重构过程 完成企业级项目重构

真实还原大厂App重构过程,进击高级工程师必备

448 学习 · 57 问题

查看课程