Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 3.3 corrupted all the project files in new bug

After updating Android Studio to the latest 3.3 version everything was going fine until suddenly gradle build failed, then indexing failed because can't read the idea files. I opened the .imi file and surprise! the contents have been replaced with some Apache2 license! Not just that every single xml file in the project is now an Apache license with length as every file also every Java/SQL file is now Chinese gibberish with a UTF-8 error on top which is also unrelated.

Anyway on the system file explorer and every file is correct.
The bug isn't related to the build or idea or any file inside the project or any program file (the problem will persist reinstalling Android Studio).

EDIT: there was a similar problem in the past but the glitch was reintroduced in Android Studio 3.3

like image 659
Irodoku Avatar asked Mar 04 '19 07:03

Irodoku


People also ask

How do you rebuild a project?

Clean and Re-buildSelect “Build” from the menu at the top in Android Studio. Click on “Clean Project” and wait. Click on “Rebuild Project” and wait.

What is new in Android Studio Bumblebee?

Some notable additions include a unified test execution between Android Studio and your continuous integration (CI) server ✅, convenient pairing flows to support ADB over Wi-Fi 📲, Improved Profiler tools to help you identify and analyze jank in your app 🕵️, and new ways to preview animations 🎥 and UI interactions ...

Where is all projects in Android Studio?

Android Studio stores the projects by default in the home folder of the user under AndroidStudioProjects. The main directory contains configuration files for Android Studio and the Gradle build files.


1 Answers

The solution is to manually erase the contents of this folder:

Windows

C:\Users\user\.AndroidStudio3.3\system\caches

Linux/Mac

~/.AndroidStudio3.3/system/caches

And restart the program.

like image 164
Irodoku Avatar answered Oct 22 '22 10:10

Irodoku