Unknown Attribute Android: error on Android STUDIO 3.2.1 - android-studio

Things i have done to resolve this issue:
Clean Build & Rebuild
Deleted .idea file
Invalidated Caches/ Restart.. option
Turn On Power Save Mode.
SDk is up to date.
Sync Project with Gradle Files done.
Reinstall Android Studio done
recreate new project done
changed something in app Gradle file and synced the project again
android studio old version change also not help
Intellij shows to reset to default namespace, it will delete android namespace..
(In Project, Layout file corrections not reflecting into app)
Android Studio Version
Error Image
gradle image
Intelij Solution

This worked for me
Close Android studio
Delete all files from
C:\Users\.AndroidStudio3.2\system\caches
C:\Users\.AndroidStudio3.2\config //not importent
start android studio

Ran into the same issue. Seems to be something specifically related to Android Studio 3.2. My solution on Windows was to delete everything withing the cache/ folder in the .AndroidStudio3.2/ folder.

This problem happen for Android studio Cache & History.
Firstly In android studio go File -> Close Project and Exit Android Studio.
Then Delete below 2 Folders:
C:\Users\user-name.AndroidStudio3.X\system\caches
C:\Users\user-name.AndroidStudio3.X\config\terminal\history (optional)
Open the Android Studio and Enjoy!

Complete uninstall Android Studio (including system and cache files) and Reinstalling clears my bug...

Related

Android studio is not opening AFTER changing studio64x.exe.vmoptions or deleting it

I have changed studio64x.vmoptions file to make studio faster but ever since I made change, android studio is not opening. it shows error about JAVA_HOME environment variable but I already have added that. please help!
tried reinstalling android studio, adding Java_Home , deleting studio64x.exe.vmoptions. still not opening
I was able to resolve the same issue (Android Studio was not opening) by refer to the solution provided in Android Developer Portal,
Studio doesn't start after upgrade
If Studio doesn't start after an upgrade, the problem may be due to an invalid Android Studio configuration imported from a previous version of Android Studio or an incompatible plugin. As a workaround, try deleting (or renaming, for backup purposes) the directory below, depending on the Android Studio version and operating system, and start Android Studio again. This will reset Android Studio to its default state, with all third-party plugins removed.
For Android Studio 4.1 and later:
Windows: %APPDATA%\Google\AndroidStudio Example: C:\Users\your_user_name\AppData\Roaming\Google\AndroidStudio4.1
macOS: ~/Library/Application Support/Google/AndroidStudio Example: ~/Library/Application Support/Google/AndroidStudio4.1
Linux: ~/.config/Google/AndroidStudio and ~/.local/share/Google/AndroidStudio Example: ~/.config/Google/AndroidStudio4.1 and ~/.local/share/Google/AndroidStudio4.1

Android Studio 3.4 stuck on indexing project

Few days ago, I have update android studio 3.4.
Now, when I open any project or build new project it's stuck on indexing.
I have try many solution like "Invalid catch and restart", remove ".android", remove ".gradle" and remove ".AndroidStudio3.4" folder but still I have facing this issue in android studio 3.4.
When I forcefully close android studio from windows task manager then after android studio not starting again until restart system and task manager in showing android studio running.
How can I solved this issue?
Try reinstalling. No need to uninstall, you just need to follow the steps in the setup to remove that version. If your computer tells you that there are files with the same name then simply overwrite.

Unable to open flutter project on android studio after upgrade

Yesterday I've upgraded my Windows 7 SP1 Powershell from 2 to 5.1, and upgraded flutter and dart to latest version using the flutter upgrade command, all worked fine, and I continued working as normal. Today after trying to access my project again I got a couple of errors, and all of my project structure gone. What can I do? and why that happened? Was that due to the upgrade? or something else?
Load Settings
Cannot load settings from file 'C:\Users\user\Documents\FlutterProjects\project\android\project_android.iml': ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
Please correct the file content
Load Settings
Cannot load settings from file 'C:\Users\user\Documents\FlutterProjects\project\project.iml': ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
Please correct the file content
Just delete .idea folder from project directory an re run android studio. it worked for me.
The problem is caused by <projectname>.iml inside the root project folder.
First cut the file from the folder and paste it somewhere else
Restart Android Studio
Close it again and put <projectname>.iml back into the root folder
Restart Android Studio once again
simply cut the (PORJNAME).iml into the desktop and re-run the IDE or android studio.
after re-running close the ide again and move back the (PORJNAME).iml to their own place,
and open the ide
Don't delete or rename any file in your project
but when you update flutter, you must have compatible version from other plugins and dependencies with your new version, so
do this steps and run again it will be ok:-
1- Close android studio and open it again
2- From terminal tab down in android studio run (flutter clean)
3- From terminal also run (flutter doctor)
4- Then run (flutter doctor -v)
5- After all at last run (pub outdated)
6- Close android studio and restart
7- Run your project and enjoy.

How to fix "synce failed"

My android studio worked fine but now I always have this message when I start it:
C:\Users\GERA.gradle\caches\4.6\file-changes\last-build.bin (Access is denied)
Also my files tree looks diferent now and Java files are not blue anymore.
This is a Android studio level problem, not only one project.
How to fix that?
Go to File-> Invalidate caches / Restart
remove .gradle folder
Restart Android Studio
Gradle build succeed
Rebuild project

can't create android studio project in Android Studio

Few days ago I have received an update patch(I don't remember what for were that update it was 5 MB of size), after installing it, studio somehow crashed and stopped working, when I'm starting it there is not wizard for creating android project. I tried to uninstall every file of android studio then download fresh download pack, install it but same problem. (OS Ubuntu 16.04)
Possible reason Plugin for Android is disabled or removed/corrupt
From your Home Screen of your Android Studio
Configure -> Plugins -> Enable Plugin for Android
Then Ok, and Restart
In my case, it was the Android Studio file corrupted file problem.
Close your Android Studio then Delete .AndroidStudio directory from the Users directory and start Android Studio Again is works for me.
C:\Users\[use_name]\\.AndroidStudio

Resources