touchlab / KaMPKit

KaMP Kit by Touchlab. A collection of code & tools designed to get your mobile team started quickly w/Kotlin Multiplatform
https://touchlab.co/
Apache License 2.0
2.2k stars 199 forks source link

KaMPKitDB is not accessible from common or Android module #140

Closed tajchert closed 4 years ago

tajchert commented 4 years ago

Project is building and running fine (tested on Android), however, IDE (Android Studio 4.1) is having issues with resolving imports from db package from common and Android code, and as a result, IDE is underlining all the time those files and doesn't autocomple when typing their names. Invalidating cache/restart doesn't solve this issue. image image image

kpgalligan commented 4 years ago

PR above will address the issue. Just a version bump.

tajchert commented 4 years ago

Thanks, I checked it but problem persists (after clean build and invalidate cache & restart). I opened a stackoverflow question as it seems more related to Intellij, as I found another project that results in very similar issue: https://stackoverflow.com/questions/64665467/intellij-doesnt-resolve-classes-from-other-modules

kpgalligan commented 4 years ago

Also make sure you run the generate task

gradle window

kpgalligan commented 4 years ago

And I'd also suggest installing the Sqldelight plugin

kpgalligan commented 4 years ago

It might be another thing, but I'm running AS 4.1, and had your issue on KaMPKit and a client project, and both were fixed by updating SQLDelight. Just make sure you run the generate task again.

tajchert commented 4 years ago

Yay! it was running generate tasks for SQLDelight (installing plugin didn't help as I did it and check before running generate task). Thanks! This issue can be close(maybe add this to README?).

kpgalligan commented 4 years ago

👍