Android Studio中没有自动完成从外部库XML值 [英] Android Studio not auto-completing values in XML from external libraries

查看:384
本文介绍了Android Studio中没有自动完成从外部库XML值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Android的工作室,而我现在遇到一个问题,即它会在XML布局文件自动完成的东西,如帝梦诗,颜色,并在同一个项目中定义的可绘制的文件,但如果这些资源进口图书馆,它不会自动完成。

I'm using Android Studio, and I'm encountering an issue where it will auto-complete things in xml layout files such as dimens, colors, and drawable files that are defined in the same project, but if these resources are from imported libraries, it will not auto-complete.

如果我手动键入值时,它会将其识别为一个正确的,现有的价值,该项目将编译并正常运行。所以,我假定这只是不能够找到它填充列表自动完成开发环境的问题。

If I type the value in manually, it will recognize it as a correct, existing value, and the project will compile and run correctly. So, I'm assuming this is just an issue with the development environment not being able to find it to populate the list for autocomplete.

关于这个奇怪的是,如果我在一个* java文件是,它会从导入库承认价值观和自动完成他们就好了...

The strange thing about this, is that if I'm in a *.java file, it will recognize values from the imported library and autocomplete them just fine...

有没有其他人遇到过这个问题?有什么是我应该包括在文件的build.gradle这将使识别这些值?任何意见或援助将大大AP preciated。

Has anyone else encountered this issue? Is there something I should be including in the build.gradle file which would make it recognize these values? Any advice or assistance would be greatly appreciated.

感谢。

推荐答案

如果您升级到0.5.1 AndroidSudio,开发环境映射到所有资源价值的正确自动完成。

If you upgrade to AndroidSudio 0.5.1, the developer environment maps to all resource values correctly for auto-complete.

这篇关于Android Studio中没有自动完成从外部库XML值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆