Compilation failed; see the compiler error output for details.

时间:2021-7-9 作者:qvyue

1. As运行时报错:

Compilation failed; see the compiler error output for details.

编译失败;有关详细信息,请参见编译器错误输出。

2. 解决方案

在terminal中输入gradlew compileDebugSources 可以看到具体原因以及报错行号

> Task :app:compileDebugJavaWithJavac FAILED
ANTLR Tool version 4.5.3 used for code generation does not match the current runtime version 4.7.1ANTLR Runtime version 4.5.3 used for parser compilation does not match the current runtime version 4.
7.1ANTLR Tool version 4.5.3 used for code generation does not match the current runtime version 4.7.1ANTLR Runtime version 4.5.3 used for parser compilation does not match the current runtime version
 4.7.1F:AndroidappsrcmainjavacomdbdaoChatRowDao.java:22: 错误: Not sure how to handle insert method's return type.
    Long insert(ChatRow... chatRows);
         ^
1 个错误

FAILURE: Build failed with an exception.

声明:本文内容由互联网用户自发贡献自行上传,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任。如果您发现有涉嫌版权的内容,欢迎发送邮件至:qvyue@qq.com 进行举报,并提供相关证据,工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。