"kapt.generateStubs" is not used by the "kotlin-kapt" plugin

I recently upgraded from Android Studio 2.3 to 3.0 and kotlin 1.1.4to 1.1.51.

Now I see this message in the gradle console:

'kapt.generateStubs' is not used by the plugin 'kotlin-kapt'

I have this in mine build.gradleso that my project works with some libraries using annotation processing:

kapt {generateStubs = true}

The string is generateStubsno longer needed and is it safe to delete it? Or is there another action I must take to remove the warning message above?

+4
source share
2 answers

kapt { generateStubs = true }. kapt1, .

kapt: https://kotlinlang.org/docs/reference/kapt.html

+12

kotlin-kapt build.gradle generateStubs = true

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
0

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


All Articles