Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is Android Studio corrupting my project files?

I have two very annoying bugs which is ocurring in the project I am working with. Android Studio keeps overwritting code from many classes using another classes inside the same project.

1 - File contents are wrong
2 - The encoding inside some files seems to have strange characters

For you to have an idea, I will upload a few screenshots below:

This one was supposed to be an enumeration class. buggy class android

This class was duplicated in another class (overwritting) duplicate class Android

This class is all messed up and has strange characters... wrong encoding android

At first, I thought the files were really corrupted, then I opened them in their respective folders to check whether it was only in Android Studio or not, and they are completely normal there.

ActivitiesMode.java

enter image description here

ReviewDatesRecyclerView (duplicated file) enter image description here

ReviewEditRecyclerViewAdapter (UTF Strange characters) enter image description here

Does someone has an idea on what can be happening?

like image 665
Dimas Mendes Avatar asked Feb 27 '19 16:02

Dimas Mendes


1 Answers

Should delete:

1) C:\Users\cc.AndroidStudio3.2\system\caches

2) all .iml files in your project folder

3) .idea with .gradle folders.

like image 112
danyapd Avatar answered Sep 21 '22 01:09

danyapd