I seldom want to post here, but we keep getting cl...
# kapt
c
I seldom want to post here, but we keep getting class not found errors from kapt when it stubs. It happens after a class name in a library module changes.:
Copy code
e: /Users/chrisjenkins/Git/instashopper-android/instashopper/build/tmp/kapt3/stubs/debug/com/instacart/instashopper/v2/dashboard/virtualbatches/model/ISVirtualBatchJsonAdapter.java:30: error: cannot find symbol
    private final com.squareup.moshi.JsonAdapter<java.util.List<ISBatchDeclineBtn>> listOfISBatchDeclineBtnAdapter = null;
                                                                ^
  symbol:   class ISBatchDeclineBtn
  location: class ISVirtualBatchJsonAdapter
ISBatchDeclineBtn
is now
BatchDeclineBtn
. Now normally I wouldn’t make a big deal about this but, I honestly can’t fix it. Tried: • clean • cleanBuildCache • invalidate caches • gradle —stop • disabling buildCache • disabling kapt workers • disabling incremental kapt • rm ./m2 dir • restarting my machine Is there anything I haven’t tried? Also this all randomly affects the entire team. I think I managed to fix this once by bumping the kotlin version, that seemed to invalidate some hidden kapt cache somewhere.