简体   繁体   English

错误:任务“:app:compileDebugKotlin”执行失败

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

相关问题 任务执行失败':app:compileDebugKotlin' - Execution failed for task ':app:compileDebugKotlin' 无法运行 Flutter 应用程序,错误:任务“:应用程序:compileDebugKotlin”执行失败 - Cant Run Flutter App, Error:Execution failed for task ':app:compileDebugKotlin' Flutter:任务“:app:compileDebugKotlin”执行失败 - Flutter: Execution failed for task ':app:compileDebugKotlin' 错误:任务 ':app:compileDebugKotlin' 执行失败。 > 编译错误。 查看日志了解更多详情 - Error:Execution failed for task ':app:compileDebugKotlin'. > Compilation error. See log for more details 北极狐 3.1 RC1 - 任务 ':app:compileDebugKotlin' 执行失败 - Arctic fox 3.1 RC1 - Execution failed for task ':app:compileDebugKotlin' 使用Firebase时,任务app.compileDebugKotlin的Android执行失败 - Android Execution failed for task app.compileDebugKotlin when firebase is used 任务':app:compileDebugKotlin'的执行失败。 >内部编译器错误。 请参阅日志以获取更多详细信息 - Execution failed for task ':app:compileDebugKotlin'. >Internal compiler error. See log for more details 任务 ':app:compileDebugKotlin' java.io.IOException 执行失败 - Execution failed for task ':app:compileDebugKotlin' java.io.IOException flutter hello_world 项目:任务 ':app:compileDebugKotlin' 执行失败 - flutter hello_world project: execution failed for task ':app:compileDebugKotlin' Flutter 编译错误 - 任务 ':flutter_paystack:compileDebugKotlin' 执行失败 - Flutter compilation error - Execution failed for task ':flutter_paystack:compileDebugKotlin'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM