[Using Gradle 4.0.0], I try to implement local storage by room in Android Kotlin in Andriod Studio 4. When I try to build project, i meet an error in build console
A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
Image:
Gradle:
apply plugin: 'kotlin-kapt'
implementation "androidx.room:room-runtime:$room_version"
kapt "androidx.room:room-compiler:$room_version"
Please kindly help to show the solution for me
Android Studio's UI was just hiding the error...
when the error occurred, it highlighted the item in the list view, and showed an unhelpful message in the terminal view.
to find the real error, select the root item in the list view so that Android Studio would display the whole build output in the terminal view, then scroll to find error.
The error is show by the kapt
in your project, and to show full error message you will have to add these to your gradle.properties
file.
kapt.use.worker.api=false
kapt.incremental.apt=false
After that run your app again, and try to read from the detailed error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With