Android Studio Code Completion seems not working on xml and also it doesn't recognize any xml attribute except the attrs on Android support v7 views. Screenshot:
Android Studio代码完成似乎无法在xml上运行,并且除了Android支持v7视图上的attrs之外,它无法识别任何xml属性。截图:
my views that is from android.support.design.v7 display correctly:
我的视图来自android.support.design.v7正确显示:
1 个解决方案
#1
1
If you are Android Studio then go to tools and then Android then click on build with gradle, it will solve the error. I encountered it too.
如果您是Android Studio然后转到工具然后Android然后单击使用gradle构建,它将解决错误。我也遇到过它。
Tools->Android->Build with Gradle
工具 - > Android->使用Gradle构建
#1
1
If you are Android Studio then go to tools and then Android then click on build with gradle, it will solve the error. I encountered it too.
如果您是Android Studio然后转到工具然后Android然后单击使用gradle构建,它将解决错误。我也遇到过它。
Tools->Android->Build with Gradle
工具 - > Android->使用Gradle构建