Unknown Attribute Android: error on Android STUDIO 3.2.1
Asked Answered
K

4

5

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

X

Error Image

X

gradle image

X

Intelij Solution

X

Killam answered 23/10, 2018 at 12:26 Comment(3)
Possible duplicate of Unknown attribute android:layout_width, layout_height, id, gravity, layout_gravity, paddingHomeless
Share your gradle dependenciesIngemar
Please don't add text as imagesKatinka
M
20

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

Mariande answered 15/12, 2018 at 8:53 Comment(2)
I deleted only system\caches and it worked for me. Android studio 3.2, gradle 3.2.1.Hinman
deleting only system\cache solved my problem Android Studio 4.0.1 gradle 6.1.1Phalan
H
3

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.

Huambo answered 5/11, 2018 at 19:6 Comment(0)
D
1

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!

Deanery answered 7/9, 2019 at 13:55 Comment(0)
K
0

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

Killam answered 24/10, 2018 at 9:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.