Questions tagged [kapt]

Use this tag for questions about the kapt (Kotlin Annotation Processing) compiler plugin for annotation processing with Kotlin.

From Kotlin reference:

Annotation processors (see JSR 269) are supported in Kotlin with the kapt compiler plugin.

Being short, you can use libraries such as Dagger or Data Binding in your Kotlin projects.

282 questions
0
votes
0 answers

How to profile building an android kotlin project verbosely?

I have an android kotlin project, incremental build time of which is really huge. If I press Make project, wait till build complete and press Make project again, then it takes ~50 seconds to build, although I didn't make any change. The --profile…
Buckstabue
  • 283
  • 1
  • 13
0
votes
2 answers

Failed resolution of: Landroid/databinding/DataBindingComponent

I have a kotlin android library module in my project in which I'm trying to use the DataBinding Library. I'm using the DataBindingComponent to do some image loading. Everything is fine at compile time, the generated DataBindingComponent interface…
MattWilliams89
  • 157
  • 1
  • 15
0
votes
1 answer

how to setting argument with maven kapt

How to set in maven with kotlin-maven-plugin? Here is gradle script: kapt{ arguments { arg("codegen.output", project.file('src/main/generated').path) arg("kapt.kotlin.generated", project.file('src/main/generated').path) …
严尚君
  • 71
  • 4
0
votes
1 answer

Kapt problems on AndroidStudio 3.0+ (TargetApi)

After upgrade to latest Android Studio 3.0.1 I hit on some errors with Kapt annotation processing. Error: e: @TargetApi(Build.VERSION_CODES.LOLLIPOP) e: ^ e: symbol: variable LOLLIPOP e: location: class…
0
votes
0 answers

':app:kaptDebugKotlin' error on android studio 3 stable version with room 1(RC)

I still get this error while compiling my project written in kotlin : Error:Execution failed for task ':app:kaptDebugKotlin'. Internal compiler error. See log for more details Does anyone have a workaround or solution for this bug? I've seen…
Pooyanmjd
  • 9
  • 1
  • 2
0
votes
1 answer

Error:Execution failed for task ':app:kaptDemoTestingDebugKotlin'

I am using kotlin for the very first time and trying to run databinding in it. I keep getting this error: Error:Execution failed for task ':app:kaptDebugKotlin'. Internal compiler error. See log for more details I have my build.gradle (Module:…
0
votes
0 answers

Kotlin kapt, gradle and ebean plugin build failure

build.gradle file looks like: group 'styleru-ikomarov' version '0.0.1-SNAPSHOT' buildscript { ext.kotlin_version = '1.1.3' ext.html_version = "0.6.2" ext.ktor_version = "0.3.3" ext.squash_version = "0.2.2" ext.gson_version =…
0
votes
0 answers

Kotlin: NoClassDefFoundError - Android Studio shows classes that shouldn't be there

I just updated my small Android project to Kotlin. And as a result I replaced annotationProcessor with kapt everywhere it was used in my build.gradle file. My problem is that although I don't use Guava Android Studio is allowing me to e.g. import…
Tiero
  • 107
  • 11
-1
votes
1 answer

kotlin problem with shared lib with database and kapt

Hi i wrote a shared lib which i imported to new project. in this lib are any commons thinks like login user, settings, etc... but when i imported it to new project . there are any problems with compilation, it…
-1
votes
2 answers

The trouble with using jetpack compose

Task :cca-app:kaptGenerateStubsDebugKotlin Could not perform incremental compilation: Could not connect to Kotlin compile daemon Could not connect to kotlin daemon. Using fallback strategy. exception: java.io.UTFDataFormatException at…
-3
votes
1 answer

in more module project , i have error in androd databingding

Kotlin plugin is applied to the project :business_module:module_web but we cannot find the KaptTask. Make sure you apply the kotlin-kapt plugin because it is necessary to use kotlin with data binding.
1 2 3
18
19