In my Android Studio project I got two almost identical xml layout. They are respectively in layout folder and layout-xlarge folder. The first as a TextView with Text "BBB" and the second is "AAA".
I deploy this on a xlarge device and the layout loaded is, correctly, the one with "AAA".
The problem comes here: I don't need the xlarge anymore, now they has to be the same layout. So I delete the one in the xlarge folder. I deploy the project on th xlarge and ... there is still "AAA", even if the layout does not exists anymore!
The deploy is successful, cause other modifications work. The XML is deleted, cause in the entire project the string "AAA" doesn't even exist.
I know it could be a device cache problem, but I would like to not delete App Data from the device, cause I have informations there and I would lose time if I restore them. Is there any other solution? And why it does this?
I tried:
- Restarting Android Studio
- Restarting PC
- Restarting Device
- Sync Project
- Rebuild Project
[Sorry I cannot post code, but I don't see how it could be helpful: I deleted it from the project, so I don't think the problem could be there]