Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
30 views

I am currently undergoing the KSP migration in my android app, to get rid of annotationProcessor and kapt See also this doc I have included the plugin in the root gradle an in all module gradle files ...
avalancha's user avatar
  • 1,841
2 votes
1 answer
61 views

I am creating a library that scans various annotations and takes actions based on them which is a standard use case of KSP (Kotlin Symbol Processing). The non-standard thing is the fact that the user ...
Marcoral's user avatar
1 vote
2 answers
371 views

I'm trying to use KSP to process annotations and generate some code, but I'm encountering a problem. When I modify the upstream code, the downstream module's code doesn't trigger a compilation, and ...
user27909701's user avatar
60 votes
3 answers
16k views

Overview: When working with Room and KSP (Kotlin Symbol Processing) for type converters in an Android project, I encountered a recurring issue after adding a new type converter. The error message was: ...
Valentin Valencia Valencia's user avatar
0 votes
2 answers
565 views

I want to use the room library for database, when I add the room library to my project, I can easily use it and I have no problem, but in order to be able to use room properly, I must I use ksp, well, ...
Mostafa Shafayi's user avatar
2 votes
1 answer
226 views

I am using Room with KSP, which is giving this error during Gradle build: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':shared:kspCommonMainKotlinMetadata'. at org....
spikanor's user avatar
  • 125
3 votes
1 answer
5k views

After migrating to Kotlin 2.0, when I sync the project with the gradle files no issues arise. However, when I try to deploy to the device, I get the following error: > Task :app:kspDebugKotlin ...
Nikolay Ch's user avatar
1 vote
0 answers
141 views

I have migrated from kapt to ksp for my current android project. All my dao(s) extend a base dao that is defined as a kotlin typealias as follows:- typealias BaseDao<T> = AbstractDao<T, Long&...
Hector's user avatar
  • 5,704
4 votes
4 answers
7k views

Problem: I want to use ksp with room. On adding ksp(libs.androidx.room.compiler) in the module level build.gradle.kts file, I get the following error: Unable to load class 'org.jetbrains.kotlin....
Vikram Baliga's user avatar
2 votes
1 answer
2k views

My DB was all right before it, I migrated from KAPT to KSP as follows documentation (https://developer.android.com/build/migrate-to-ksp), it worked fine for Hilt library, but when I change Room ...
Gelson Schikorski's user avatar
2 votes
1 answer
750 views

I've a KMP shared module that imports a KSP library to generate code for iOS targets, and it works as expected: However, I’m facing a strange behavior; my generated code cannot see/access what’s in ...
GuilhE's user avatar
  • 11.9k
1 vote
1 answer
798 views

I noticed after enabling Android Compose for the project: buildFeatures { compose true } KSP with ROOM doesn't work properly finishing with exceptions like this during bulding project: [ksp] [...
Gregorian's user avatar
3 votes
0 answers
1k views

In an Android project (native with mixed java / kotlin) we are using a KSP based annotation processor to collect class definitions that are annotated with a specific project internal annotation. All ...
arkascha's user avatar
  • 43.2k
1 vote
1 answer
451 views

Is there a way to create a Kotlin compiler plugin that can modify the code being written? I don't want to create separate generated code but actually modify the code itself. For example, given this ...
Samuel Neff's user avatar
  • 75.3k
2 votes
2 answers
2k views

As shared in https://stackoverflow.com/a/75441869/3286489, we have a way to print log out for KSP compilation. However, the print out only shows WARNING and ERROR. If I want to have INFO, I'll need to ...
Elye's user avatar
  • 61.3k
29 votes
5 answers
40k views

I just started learning about Android in Kotlin and I was creating a note application just for learning purposes. I wanted to use Room to store saved notes in my database, so i was checking out the ...
Achintya's user avatar
  • 397
1 vote
1 answer
815 views

I have a problem with KSP source code generation only during CI build event. It always work in my local machine. This is the link to the error for travis build. What is the mistake in my config or ...
Mirjalal's user avatar
  • 1,360
6 votes
1 answer
1k views

I have the following data class annotated with @MyAnnotation: @MyAnnotation data class MyDataClass( val foo: Boolean = true, val bar: Int = 123, val buz: String? = "abc", ) From ...
Roberto Leinardi's user avatar
1 vote
1 answer
1k views

I'm working on a custom generator to generate code from annotation on Android platform. I currently using KSP for code generating. After I generate the code, I need to generate some resource xml files,...
Namek Master's user avatar
0 votes
1 answer
3k views

I've been playing recently with KSP and have managed to develop interesting capabilities (such as automatic recyclerview and view holder generators based on their layout id), and so far all is well. ...
Shadow's user avatar
  • 4,879
1 vote
1 answer
618 views

I've migrated Room kapt to ksp. Everything works fine on the local machine (Mac), but on our Linux CI machine I'm getting an error, and the app does not compile. Any ideas, why it might happen and how ...
Artem Kleinschmidt's user avatar
0 votes
1 answer
1k views

Short version: How can I tell if a KSType is a primitive or even compare it to a kotlin type? I'm writing a code generator in Kotlin using ksp. I am iterating through a type's functions and have a ...
Mike Two's user avatar
  • 46.5k
0 votes
1 answer
2k views

I'm experimenting with KSP (Kotlin Symbol Processing) to see what it's capable of and I'm trying to get it working on a Kotlin Multiplatform project. When I only enable kspJvm, it works perfectly, as ...
Jan Vladimir Mostert's user avatar
0 votes
0 answers
531 views

I have an annotation "AddHeader" for functions: annotation class AddHeader If one function adds this annotation, it will add a parameter like this: // service for retrofit interface ...
xiaobo0113's user avatar
0 votes
1 answer
361 views

Currently I am studying on KSP(Kotlin Symbol Processing), and I am curious about what does "Symbol" mean in KSP. When it comes to comparing with KAPT, it says "To run Java annotation ...
Jagpaw's user avatar
  • 85