question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Best way to clear out epoxy build cache?

See original GitHub issue

My models are build with annotations (not data binding or anything) and when I switch branches I sometimes will fall into a loop where for like 2+ hours I’m trying a combination of clearing cache, manually deleting folders, restart ide, etc because in one branch I defined one model that’s missing in another branch.

My current scenario is that I can’t build and I suspect it’s that my SuperCoolTitleEpoxyModel_ is being generated even though SuperCoolTitleEpoxyModel doesn’t actually exist in this branch. No matter what I try SuperCoolTitleEpoxyModel_ keeps getting generated. Is there some secret dir that I can nuke to prevent this from happening again? This happens like once a week and just kills my day.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
quanltcommented, Oct 23, 2019

you could try ./gradlew --no-build-cache clean assembleDebug @ColtonIdle

0reactions
argenkiwicommented, Nov 15, 2020

I was also struggling with a model defined in a different branch being generated and causing an issue. I disabled the build cache from the project’s gradle.properties file: android.enableBuildCache=false. After a successful build I re-enabled and the issue did not return.

I also found out that the latest gradle plugin no longer stores the build cache under ~/.android/build-cache but now uses gradle caching. Maybe nuking the ~/.gradle/caches/build-cache-# folders may help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Clean Up Epoxy Resin - YouTube
Working with epoxy resin can be sticky. With a few simple steps, you can keep your tools, your work surface and yourself clean...
Read more >
Server Caching - Caucho Resin
When pages created by database queries only change every 15 minutes, e.g. CNN or Wikipedia or Slashdot, Resin can cache the results and...
Read more >
Learn how to remove epoxy quickly and safely - Loctite
Soak a clean, soft cloth with acetone and then gently rub it on the areas where epoxy needs to be removed. The wood/concrete...
Read more >
Steel Coated Epoxy Floors Cache Valley, Utah - Facebook
When you get Steel Coated Epoxy Floors in your garage and decide to keep ... a lifetime of no cracking, no chipping, easy...
Read more >
Remove all items from RecyclerView - Stack Overflow
Avoid deleting your items in a for loop and calling notifyDataSetChanged in every iteration. Instead just call the clear method in your list...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found