Kotlin Kapt does not show data binding errors when working with Android Studio

I use Kotlin kapt version 3, whenever there is a problem with data binding, the assembly from Android Studio fails with a very common error:

Error:Execution failed for task ':app:kaptDev21DebugKotlin'. > Internal compiler error. See log for more details 

When I run the same task from the console, the real problem arises. Somehow AS does not show this error in the message box.

I am using Android Studio version 2.3.3

+5
source share
2 answers

Android Studio 3.0 and later Kotlin Android Studio 3.0 support. AS 3.0 comes with default support with Kotlin, since AS 2.3 requires a plug-in.

Android Studio Team from google and the IDEA intellij Team from JetBrain work together to make Kotlin compatible with Android Studio .

Version 3.0 currently ships with the Canary version (the preview version), and every week a new preview version (Canary 1, Canary 2 ... etc.) rolls out the corrected error messages.

So, for now, you should try the latest version of Android Studio 3.0 Canary 9.

If the problem still persists, report this error.

0
source

You may see an error in the Gradle Console , something similar to this:

enter image description here

0
source

Source: https://habr.com/ru/post/1270710/


All Articles