Android Studio 1.2.2 Static Import Completion

时光怂恿深爱的人放手 提交于 2019-12-11 02:43:27

问题


I'm trying to run Suger ORM v1.4 sample in Android Studio 1.2.2 that uses static imports!

Example:

import static com.orm.SugarRecord.save;

What I have tried:

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.

Ref: IntelliJ Static Import Completion

2> I tried with selecting and pressing Alt+Enter

selecting Add on demand static import also doesn't resolves my problem !!

Any help would be greatful !!

other resources I have tried (failed):

IntelliJ Static Import Completion

How to fix "Organize Imports" in Android Studio for static imports


回答1:


Solved! My bad after creating the 1.4v library, forgot to remove old 1.3v gradle dependency!! it's as simple is that!!



来源:https://stackoverflow.com/questions/30888307/android-studio-1-2-2-static-import-completion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!