A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution

Execution failed for task ':app:kaptAndroid_oppoDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
   > java.lang.reflect.InvocationTargetException (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.



手动删除 Android Studio 的 Cache 文件夹里面的所有内容,然后重新启动AS即可。(我在升级 Android Studio2020.3、Kotlin 1.5 和 Gradle 7.0 时遇到了同样的问题。这个解决方案解决了我的问题)
~/Library/Caches/Google/AndroidStudio2020.3/Cache


WechatIMG16.jpeg
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容