Android的工作室1.2.2静态导入完成 [英] Android Studio 1.2.2 Static Import Completion
问题描述
我想在Android的工作室1.2.2使用静态导入运行SUGER ORM V1.4样本!
I'm trying to run Suger ORM v1.4 sample in Android Studio 1.2.2 that uses static imports!
例如:
import static com.orm.SugarRecord.save;
我曾尝试:
1>首先,我试图通过此方法解决
设置 - > code类 - >爪哇 - >进口
在面板的中间是包使用导入以'*'表。你可以在这里添加一个条目,一个完全合格的类名,并勾选静态箱;现在在这个类中的所有静态方法将可用于自动完成。
1>First I have tried to solve by this Settings -> Code Style -> Java -> Imports In the middle of the pane is the "Packages to Use Import with '*'" table. You can add an entry here of a fully-qualified class name, and tick the static box; now all static methods in this class will be available for auto-completion.
2>我试着用选择和pressing Alt + Enter键
2> I tried with selecting and pressing Alt+Enter
选择添加点播静态导入也没有解决我的问题!
selecting Add on demand static import also doesn't resolves my problem !!
任何帮助将不胜感激!
我曾尝试其他资源(失败):
<一个href=\"http://stackoverflow.com/questions/20452178/how-to-fix-organize-imports-in-android-studio-for-static-imports\">How修复&QUOT;组织进口&QUOT; Android Studio中的静态导入
推荐答案
解决了!我的坏创造1.4V库后,忘了删除旧的gradle 1.3V依赖!这是简单的是!!
Solved! My bad after creating the 1.4v library, forgot to remove old 1.3v gradle dependency!! it's as simple is that!!
这篇关于Android的工作室1.2.2静态导入完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!