https://kotlinlang.org logo
#android
Title
# android
g

Guy Bieber

03/11/2020, 11:21 PM
I have a module that I modified and rebuilt. However when debugging an app that uses the module it appears to be using an old version of the module. I have cleaned and rebuilt everything, but nothing seems to work. Any ideas?
w

wasyl

03/11/2020, 11:27 PM
try
./gradlew app:installDebug --rerun-tasks --no-cache
g

Guy Bieber

03/11/2020, 11:59 PM
Tried: ./gradlew app:installDebug --rerun-tasks --no-build-cache ./gradlew app:installDebug --rerun-tasks --build-cache There wasn’t an option for --no-cache Seemed to fail
a

Anastasia Finogenova

03/12/2020, 1:09 AM
Invalidate cache and restart in the AS as an option
👍 1
Do you include this module into the app container as an external library?
g

Guy Bieber

03/12/2020, 1:31 AM
It’s shows up as a module, not an external library.
a

Anastasia Finogenova

03/12/2020, 1:31 AM
Try invalidate cache and restart in the Android studio then
w

wasyl

03/12/2020, 8:26 AM
Yep sorry, I mean
--no-build-cache
👍 1
g

Guy Bieber

03/30/2020, 3:23 PM
This seemed to work: 1. delete .gradle folder 2. invalidate and clear caches 3. clean and rebuild