build.gradle中的compileSdkVersion是最新的版本23版本 ,并没有使用省电模式,File ->> power save mode,但仍然不提示
现在相当影响开发效率,求大神解答~~~
...全文
26009打赏收藏
android studio中xml文件代码提示问题
在系统控件中输入代码时,全部都正常提示。 命名空间已经引入,而在第三方库的控件中输入“app”只会提示“appNs”,而且输入任何都代码都没有提醒。 系统控件如果在第三方库的控件下,任何代码都没有提示。 build.gradle中的compileSdkVersion是最新的版本23版本 ,并没有使用省电模式,File ->> power save mode,但仍然不提示 现在相当影响开发效率,求大神解答~~~
Finally, deleting .idea folder and all .iml files from the project, restarting Android Studio and rebuilding gradle did the trick. Autocomplete in XML support library is working again.
Probably checking out files from Version Control or copying all the source files in a new project would do the trick aswell.
这是stackoverflow上大神的回复,就是删除.idea文件夹和所有的.iml文件,然后重启as,重新build project,经测试时有效果的。