简体   繁体   English

任务应用程序的执行失败:compileDebugJavaWithJavac

[英]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.

相关问题 任务':app:compileDebugJavaWithJavac的执行失败 - Execution failed for task ':app:compileDebugJavaWithJavac 任务执行失败:app:compileDebugJavaWithJavac - Execution failed for task :app:compileDebugJavaWithJavac Android Studio 中任务 :app:compileDebugJavaWithJavac 的执行失败 - Execution Failed for task :app:compileDebugJavaWithJavac in Android Studio Android Studio-任务':app:compileDebugJavaWithJavac'的执行失败 - Android Studio - Execution failed for task ':app:compileDebugJavaWithJavac' 错误:任务':app:compileDebugJavaWithJavac的执行失败 - Error:Execution failed for task ':app:compileDebugJavaWithJavac 任务执行失败:app:compileDebugJavaWithJavac in Android Studio 2 - Execution Failed for task :app:compileDebugJavaWithJavac in Android Studio 2 任务':app:compileDebugJavaWithJavac'的AndroidStudio执行失败 - AndroidStudio Execution failed for task ':app:compileDebugJavaWithJavac' 任务'执行失败':compileDebugJavaWithJavac - Execution failed for task ':compileDebugJavaWithJavac Android编译错误,任务':app:compileDebugJavaWithJavac'的执行失败 - Android compile error, Execution failed for task ':app:compileDebugJavaWithJavac' 无法解决Android错误:任务':app:compileDebugJavaWithJavac'的执行失败 - Cannot solve Android Error:Execution failed for task ':app:compileDebugJavaWithJavac'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM