I have a module that I modified and rebuilt. Howev...
# android
g
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
try
./gradlew app:installDebug --rerun-tasks --no-cache
g
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
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
It’s shows up as a module, not an external library.
a
Try invalidate cache and restart in the Android studio then
w
Yep sorry, I mean
--no-build-cache
👍 1
g
This seemed to work: 1. delete .gradle folder 2. invalidate and clear caches 3. clean and rebuild