Note that there are some explanatory texts on larger screens.

plurals
  1. POIntelliJ Android cache build with drawables ignores changes
    primarykey
    data
    text
    <p>I have a minor issue with the way IntelliJ caches files or builds (not sure about terminology here).</p> <p>Situation Abstract:</p> <p>Library module</p> <ul> <li>DrawableA</li> <li>DrawableB</li> </ul> <p>App module </p> <ul> <li>DrawableA</li> </ul> <p>Assume library images are black and white, App ones are color.<br> The app shows (correctly) the colorful A.<br> The app shows (correctly) the black and white B (means its missing).<br> Now I add an image to App project, Drawable B, in color. </p> <ul> <li>If you simply press "run" he will keep using black and white B</li> <li>If you "rebuild project" he will use the correct one</li> <li>If you try "Make" and "Compile" manually on Lib and App NO EFFECT</li> </ul> <p>To clarify, this issue is really special. It only occurs if the DrawableB is NOT present in the App module. If you have it, but the WRONG one, and you update it, it works. I assume its an internal caching of IntelliJ, and he does not recognize that I added a drawable (and he has to use it from the App now, not the LIB). Perhaps its something in the google build of Android projects, not enough info about the internal here...</p> <p>I know, <strong>the obvious tip is "do a rebuild of the whole project"</strong> - that said, <strong>I have 18 App modules</strong>, each for one App. The rebuild takes forever (on one of our machines without SSD), and its not neccessary. If I change something in e.g. AppX, I only need to rebuild AppX and the Library. But there seems to be no option for it.</p> <p>Does anyone know a workaround, like deleting BIN or other cache folders via script? Cant split up the modules in different "projects", would loose refactoring capabilities.</p> <p>Crosspost here, check before wasting time to answer (this site here is more frequented and faster, but this issue is so specific, cant hurt to ask the developers too)<br> <a href="http://devnet.jetbrains.net/message/5446674" rel="nofollow noreferrer">http://devnet.jetbrains.net/message/5446674</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload