app:kaptDebugKotlin no error message

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

解决方式:
Run your application with ./gradlew clean build command to see what’s exactly wrong with your code. Just paste it into the Terminal in Android Studio.

在Terminal 中运行gradlew clean build,来校验编译。如果出错,这里会列出详细的代码信息,然后一一解决。

你可能感兴趣的:(android,android,studio,android,android-studio)