问题
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
回答1:
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
回答2:
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.
回答3:
Complete uninstall Android Studio (including system and cache files) and Reinstalling clears my bug...
回答4:
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!
来源:https://stackoverflow.com/questions/52949060/unknown-attribute-android-error-on-android-studio-3-2-1