android studio中xml文件代码提示问题

lwcye 2015-10-21 06:44:24


在系统控件中输入代码时,全部都正常提示。



命名空间已经引入,而在第三方库的控件中输入“app”只会提示“appNs”,而且输入任何都代码都没有提醒。



系统控件如果在第三方库的控件下,任何代码都没有提示。



build.gradle中的compileSdkVersion是最新的版本23版本 ,并没有使用省电模式,File ->> power save mode,但仍然不提示

现在相当影响开发效率,求大神解答~~~
...全文
2600 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
Jjordan23 2018-01-02
  • 打赏
  • 举报
回复
试试sync吧,我的是同步一下就好了
qq_39978765 2017-08-25
  • 打赏
  • 举报
回复
我的Android studio 删了.idea文件提示了,但是build的之后idea文件出现了,就又不管用了,什么鬼
qq_39431026 2017-07-06
  • 打赏
  • 举报
回复
有一天,我再次打开as准本吧剩下的布局写完,当我按下< 和L 的时候,。。。几分钟后,我哭了。 布局基本都写完了,这个项目初版也随后写完了,这个问题一直都没有解决,包括以上删除idea文件夹重启。。。 计划明天重装系统,删光IDE相关文件。。。。。。
chenxian0258 2016-06-02
  • 打赏
  • 举报
回复
上述的那几个办法我也都试过了,idea文件夹删了,.iml文件也都删了,重新引入的工程,xml还是没有补全
Tony-Annie 2016-04-07
  • 打赏
  • 举报
回复
AS已升级到2.1,4预览版,上述问题依然存在。好纠结
jklwan 2015-10-22
  • 打赏
  • 举报
回复
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,经测试时有效果的。
jklwan 2015-10-22
  • 打赏
  • 举报
回复
引用 3 楼 lwcye 的回复:
[quote=引用 2 楼 jklwan 的回复:] 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,经测试时有效果的。
经过测试,确实有用,不过我想知道原因是什么,好进行根治,每建立一个项目都这么搞,还是挺麻烦的[/quote] 算是android studio还不够完善吧……
lwcye 2015-10-22
  • 打赏
  • 举报
回复
引用 2 楼 jklwan 的回复:
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,经测试时有效果的。
经过测试,确实有用,不过我想知道原因是什么,好进行根治,每建立一个项目都这么搞,还是挺麻烦的
阿飞__ 2015-10-21
  • 打赏
  • 举报
回复
这是安卓编一起的问题,第三方的控件经常都会这样,你可以就在另外的地方写好再复制过去

80,351

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧