kopykat-kt / kopykat

Little utilities for more pleasant immutable data in Kotlin
Other
283 stars 16 forks source link

Android generation requires to clean #56

Open pablisco opened 2 years ago

pablisco commented 2 years ago

I was trying out the lib on a demo Android project. The code doesn't seem to be generated as soon as the type is created. I had to clean the project or run the app. Running the build (from the hammer icon on Android Studio) didn't generate the code either.

I'm not sure if this is expected behaviour or something we are not configuring ok on our side.

serras commented 2 years ago

Maybe you need to follow instructions similar to those for KMP? https://kotlinlang.org/docs/ksp-multiplatform.html

pablisco commented 2 years ago

I've pushed the code I have so far here:
https://github.com/kopykat-kt/tic-tac-toe

early6AM commented 1 year ago

I had the same issue. For fix this i'm tried to delete build directories and it's work sometimes. But result of generation is really random. Sometimes work, sometimes not. Plz fix

I've pushed the code I have so far here: https://github.com/kopykat-kt/tic-tac-toe

serras commented 1 year ago

@dzemmarat @pablisco could you check if any of the solutions in this article (under heading Challenges and solutions) help with the problem? I'm not an Android developer, so I don't know what a good solution is for this problem.