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
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.
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 ...
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With