After transferring the project folder to another location, any new changes in the code stopped compiling.

Generator specifically error - the compiler reacts and does not allow to compile the project, but if there are no errors, but changes are made to the code - the old version is compiled (as before the transfer). The java / assets folders do not open from Android Studio ... Rebuild / clean did ...

enter image description here

How to be?

    2 answers 2

    Save the project to another disk, delete the existing one from the list and import it again.

      Delete the project from android studio, then select File -> Invalidate cashes / restart , re-open the project

      • Did not help. When saving, by the way, and the subsequent opening of the project - there are changes in the code, and the old version is compiled ..... - Chekist
      • @Chekist, what is the difference between the "old" and "new" versions? - redL1ne
      • It means that changes in the code itself are saved and loaded when you re-open the project, and the version of the code "before these changes" is compiled. - Chekist
      • @Chekist, to be honest, I don’t understand how it happens at all - redL1ne