I've been trying to run my android studio app but android studio keeps giving me this build error for all of my projects.
Full error is this:
ERROR:: AAPT: <App Location>\app\build\intermediates\stable_resource_ids_file\debug\stableIds.txt: error: failed to open: The data is invalid. (13).
I tried making fresh projects too but that didn't seem to fix it. I didn't change anything in those projects. I also checked and there is no stableIds.txt. This issue didn't happen before too so I'm even more confused.
I was experiencing the same issue... my anti virus program (AVG) was the culprit. AVG was silently preventing Android Studio from working properly...despite having already turned off AVG's File Sheild
, and Behaviour Sheild
. I fixed this by:
solution 1
Ransomeware Protection
should also prevent this from ever happening again.
File Sheild
and Behaviour Sheild
but I'm not sure, because I already had them turned off before this happened)solution 2
aapt2.exe
from modifying stableIds.txt