[英]Error:Execution failed for task ':app:compileDebugKotlin'
I am facing below exception:我面临以下异常:
Execution failed for task ':app:kaptDebugKotlin'.任务 ':app:kaptDebugKotlin' 执行失败。
A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution java.lang.reflect.InvocationTargetException (no error message)
执行 org.jetbrains.kotlin.gradle.internal.KaptExecution java.lang.reflect.InvocationTargetException 时发生故障(无错误消息)
and --scan gives below:和 --scan 给出如下:
The build scan was not published due to a configuration problem.由于配置问题,构建扫描未发布。
The Gradle Terms of Service have not been agreed to.尚未同意 Gradle 服务条款。
For more information, please see https://gradle.com/help/plugin-terms-of-service .有关详细信息,请参阅https://gradle.com/help/plugin-terms-of-service 。
Alternatively, if you are using Gradle Enterprise, specify the server location.或者,如果您使用的是 Gradle Enterprise,请指定服务器位置。 For more information, please see https://gradle.com/help/plugin-enterprise-config .
有关详细信息,请参阅https://gradle.com/help/plugin-enterprise-config 。
i have just updated to android studio 4.0 and from then facing above issue.我刚刚更新到 android studio 4.0 并从那时起面临上述问题。 Any help much appreciated.
非常感谢任何帮助。
I've had similar error and solved it by checking my room DAO.我有类似的错误并通过检查我的房间 DAO 解决了它。 You should make sure everything is where it's supposed to be.
你应该确保一切都在它应该在的地方。
You could also try你也可以试试
"Build" -> "Clean Project" “构建”->“清理项目”
..after same thing with.. ..在与..相同的事情之后
"Build" -> "Rebuild Project" “构建”->“重建项目”
..then.. ..然后..
"File" -> "Invalidate Caches / Restart" “文件”->“使缓存无效/重新启动”
It turns out that my sub-modules had some issue to update them even though everything was up to date.事实证明,即使一切都是最新的,我的子模块也有一些更新它们的问题。 When i did it one more time this above error disappeared, Weird that the error i got.
当我再次这样做时,上述错误消失了,奇怪的是我得到的错误。 to the error studio has shown was nowhere close!!!
到错误工作室已显示远未接近! it don't even shows where the error many of the times.
它甚至没有多次显示错误的位置。
Recreated the same issue on flutter: issue faced- Execution failed for task ':app:compileDebugKotlin'在 flutter 上重新创建了相同的问题:面临的问题 - 任务“:app:compileDebugKotlin”的执行失败
solution:解决方案:
Enter your company domain with a single dot '.'使用单点“。”输入您的公司域。 Solution
解决方案
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.