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.
手動(dòng)刪除 Android Studio 的 Cache 文件夾里面的所有內(nèi)容鼻弧,然后重新啟動(dòng)AS即可唠梨。(我在升級(jí) Android Studio2020.3惩歉、Kotlin 1.5 和 Gradle 7.0 時(shí)遇到了同樣的問(wèn)題喝检。這個(gè)解決方案解決了我的問(wèn)題)
~/Library/Caches/Google/AndroidStudio2020.3/Cache