未知属性android [英] Unknown attribute android
问题描述
在所有android标签上获取未知属性错误.
Getting Unknown attribute error on all android tag.
在布局XML中,自动建议"不会显示所有属性(例如layout_width,layout_height,orientation,orientation和所有其他android属性).
In layout XML, Auto suggestion is not showing all attributes (like layout_width, layout_height, orientation, orientation & all others android attributes.)
我为解决此问题所做的事情.
Things i have done to resolve this issue.
干净的版本&重建 删除的.idea文件 无效的缓存/重新启动..选项 打开省电模式. SDk是最新的.
Clean Build & Rebuild Deleted .idea file Invalidated Caches/ Restart.. option Turn On Power Save Mode. SDk is up to date.
未知属性android:orientation更少. (Ctrl + F1)
此检查突出显示了Android资源文件和AndroidManifest.xml
Unknown attribute android:orientation less. (Ctrl+F1)
This inspection highlights unknown XML attributes in Android resource files and AndroidManifest.xml
当前正在使用:
Android studio 3.2.1
targetSdkVersion 27
ext.kotlin_version = '1.2.61'
build:gradle:3.2.1
我尝试删除路径中的.idea并使缓存无效并重新启动,同步gradle
I tried with deleting .idea in the path and invalidate cache and restart ,synching the gradle
推荐答案
最近在Windows7和Android Studio 3.2.1中遇到了相同的问题.真正有用的是清理以下文件夹:
got the same issue recently with Windows7 and Android studio 3.2.1. what's actually helped is clean up of the following folders:
c:\Users\<user>\.gradle\caches\
c:\Users\<user>\.AndroidStudio3.2\system\caches\
这篇关于未知属性android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!