[英]Execution failed for task app:compileDebugJavaWithJavac
I have written a small annotation processor and added it as a java library in android project. 我编写了一个小的注释处理器,并将其添加为android项目中的java库。 It works fine and generates required file but at the end build fails with exception
app:compileDebugJavaWithJavac
. 它可以正常工作并生成所需的文件,但最终构建失败,并带有异常
app:compileDebugJavaWithJavac
。 After running the build command from command line with --info
argument I have found this line causing the problem 从命令行使用
--info
参数运行build命令后,我发现此行导致了问题
file or directory 'C:\Users\NAME\Desktop\MyProcessor\app\src\debug\java', not found
I don't know how to fix it. 我不知道该如何解决。 Why am I getting this error and how to fix it?
为什么会出现此错误以及如何解决?
I have solved this by executing my code for only first round of annotation processing. 我已经通过仅执行第一轮注释处理的代码解决了这一问题。 In second round, it tries to generate the same files again and I get this error.
在第二轮中,它尝试再次生成相同的文件,但出现此错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.