No command 'android_list_targets' found

53 views
Skip to first unread message

小冶

unread,
Feb 3, 2015, 10:11:09 AM2/3/15
to eclim...@googlegroups.com
i install eclim from the downloaded eclim_2.4.1.jar, and install the standard eclipse from the official site.
it works fine for normal java project
but when i use ProjectCreate to make a new android project, it gives the error below:

2015-02-03 23:06:17,909 DEBUG [org.eclim.command.Main] args: [-pretty, -command, android_list_targets]
2015-02-03 23:06:17,913 DEBUG [org.eclim.command.Main] Command triggered exception: [-pretty, -command, android_list_targets]
java
.lang.RuntimeException: No command 'android_list_targets' found.
        at org
.eclim.command.Options.parse(Options.java:177)
        at org
.eclim.command.Main.nailMain(Main.java:87)
        at sun
.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun
.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java
.lang.reflect.Method.invoke(Method.java:483)
        at com
.martiansoftware.nailgun.NGSession.run(NGSession.java:336)
2015-02-03 23:06:17,914 DEBUG [org.eclim.command.Main] Main - exit on error
NGSession 1: 127.0.0.1: org.eclim.command.Main exited with status 1


i don't know why it said "android_list_targets" not found, because i can run the "android lis targets" correctly from bash.
could anyone help me? thanks!!!

Eric Van Dewoestine

unread,
Feb 3, 2015, 11:23:42 AM2/3/15
to eclim...@googlegroups.com
It sounds like you have eclim's vim android files but your eclim
daemon doesn't have adt support enabled. How did you install eclim?
Did you use some other method to install the vim files (highly
discouraged)? Can you restart eclimd (you can omit the debug flag for
now) and post the output?

--
eric

小冶

unread,
Feb 3, 2015, 7:35:59 PM2/3/15
to eclim...@googlegroups.com
i installed eclim fully according to the official doc says: 
java -jar eclim_2.4.1.jar
i'm using pathogen for vim plugin manage, however
the eclim vim files were installed directly into ~/.vim/plugin/eclim as a traditional plugin.

the full output of eclimd:

[abc@dyj-mbp:~/git-repo/minglife]/Applications/eclipse/eclimd
/usr/bin/java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

/usr/bin/java -d64 -Dosgi.requiredJavaVersion=1.6 -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts -XX:MaxPermSize=256m -Xms40m -Xmx512m -XstartOnFirstThread -jar /Applications/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar -debug -clean -refresh -application org.eclim.application
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Install location:
    file:/Applications/eclipse/
Configuration file:
    file:/Applications/eclipse/configuration/config.ini loaded
Configuration location:
    file:/Applications/eclipse/configuration/
Framework located:
    file:/Applications/eclipse/plugins/org.eclipse.osgi_3.10.2.v20141020-1740.jar
Loading extension: reference:file:org.eclipse.osgi.compatibility.state_1.0.1.v20140709-1414.jar
        eclipse.properties not found
Framework classpath:
    file:/Applications/eclipse/plugins/org.eclipse.osgi_3.10.2.v20141020-1740.jar
    file:/Applications/eclipse/plugins/
    file:/Applications/eclipse/plugins/org.eclipse.osgi.compatibility.state_1.0.1.v20140709-1414.jar
Debug options:
    file:/Users/abc/git-repo/minglife/.options not found
Time to load bundles: 58
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.
Starting application: 5378
org.eclipse.m2e.logback.configuration: Logback config file: /Users/abc/Documents/workspace/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.5.0.20140606-0033.xml
org.eclipse.m2e.logback.configuration: Initializing logback
2015-02-04 08:27:01.997 java[58156:2307] *** WARNING: Method userSpaceScaleFactor in class NSWindow is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.
2015-02-04 08:27:02.039 java[58156:2307] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.
Application Started: 8435
2015-02-04 08:27:02,329 INFO  [org.eclim.eclipse.EclimDaemon] Workspace: /Users/abc/Documents/workspace
2015-02-04 08:27:02,331 INFO  [org.eclim.eclipse.EclimDaemon] Home: /Applications/eclipse/plugins/org.eclim_2.4.1/
2015-02-04 08:27:02,331 INFO  [org.eclim.eclipse.EclimDaemon] Starting eclim...
2015-02-04 08:27:02,340 INFO  [org.eclim.eclipse.EclimDaemon] Loading plugin org.eclim
2015-02-04 08:27:02,342 INFO  [org.eclim.eclipse.EclimDaemon] Loading plugin org.eclim.core
2015-02-04 08:27:02,462 INFO  [org.eclim.plugin.core.CorePlugin] Loading eclim plugins...
2015-02-04 08:27:02,467 INFO  [org.eclim.plugin.core.CorePlugin] Loading plugin org.eclim.adt
2015-02-04 08:27:02,469 INFO  [org.eclim.plugin.core.CorePlugin] Loading plugin org.eclim.jdt
2015-02-04 08:27:02,469 INFO  [org.eclim.plugin.core.CorePlugin] Loading plugin org.eclim.pydev
2015-02-04 08:27:02,471 ERROR [org.eclim.plugin.core.CorePlugin] Failed to load plugin 'org.eclim.pydev'.
2015-02-04 08:27:02,471 INFO  [org.eclim.plugin.core.CorePlugin] Loading plugin org.eclim.wst
2015-02-04 08:27:02,471 ERROR [org.eclim.plugin.core.CorePlugin] Failed to load plugin 'org.eclim.wst'.
2015-02-04 08:27:02,471 INFO  [org.eclim.plugin.core.CorePlugin] Plugins loaded.
2015-02-04 08:27:02,472 INFO  [org.eclim.eclipse.EclimDaemon] Loaded plugin org.eclim.core
2015-02-04 08:27:02,473 INFO  [org.eclim.eclipse.EclimDaemon] Waiting on running jobs before starting eclimd...
2015-02-04 08:27:09,477 INFO  [org.eclim.eclipse.EclimDaemon] Jobs finished.
2015-02-04 08:27:09,479 INFO  [org.eclim.eclipse.EclimDaemon] Eclim Server Started on: 127.0.0.1:9091
^FkNGSession 1: 127.0.0.1: org.eclim.command.Main exited with status 1

在 2015年2月4日星期三 UTC+8上午12:23:42,Eric Van Dewoestine写道:

Eric Van Dewoestine

unread,
Feb 3, 2015, 11:12:41 PM2/3/15
to eclim...@googlegroups.com
^ this is the loading of eclim's android support, so that looks good.

> 2015-02-04 08:27:02,469 INFO [org.eclim.plugin.core.CorePlugin] Loading
> plugin org.eclim.jdt
> 2015-02-04 08:27:02,469 INFO [org.eclim.plugin.core.CorePlugin] Loading
> plugin org.eclim.pydev
> 2015-02-04 08:27:02,471 ERROR [org.eclim.plugin.core.CorePlugin] Failed to
> load plugin 'org.eclim.pydev'.
> 2015-02-04 08:27:02,471 INFO [org.eclim.plugin.core.CorePlugin] Loading
> plugin org.eclim.wst
> 2015-02-04 08:27:02,471 ERROR [org.eclim.plugin.core.CorePlugin] Failed to
> load plugin 'org.eclim.wst'.

^ these failures are suspicious. This makes me question the current
state of your eclipse install. Can you try installing eclimd against a
clean vanilla eclipse installation? You can just extract an
eclipse.org distribution to your home directory and install against
that. Then run eclimd from there and try creating an android project.
> --
> You received this message because you are subscribed to the Google Groups "eclim-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to eclim-user+...@googlegroups.com.
> To post to this group, send email to eclim...@googlegroups.com.
> Visit this group at http://groups.google.com/group/eclim-user.
> For more options, visit https://groups.google.com/d/optout.


--
eric

小冶

unread,
Feb 6, 2015, 3:16:40 AM2/6/15
to eclim...@googlegroups.com
hi, Eric:
i have reinstalled eclim then it works well to create android project
i don't know why... it seems that the android option is defaultly checked so i would not uncheck it in last insallation.
but now, another problem comes out:
eclim produces some java class proto files in the "bin/class" directory when i'm editting corresponding source files
then i run "ant", it will report error for redundant definitions:
because those java files have already pre dexed into their jars, now the eclim-produced proto files conflict..


在 2015年2月4日星期三 UTC+8下午12:12:41,Eric Van Dewoestine写道:

Eric Van Dewoestine

unread,
Feb 6, 2015, 12:53:26 PM2/6/15
to eclim...@googlegroups.com
On 2015-02-06 00:16:40, 小冶 wrote:
> hi, Eric:
> i have reinstalled eclim then it works well to create android project
> i don't know why... it seems that the android option is defaultly checked
> so i would not uncheck it in last insallation.
> but now, another problem comes out:
> eclim produces some java class proto files in the "bin/class" directory
> when i'm editting corresponding source files
> then i run "ant", it will report error for redundant definitions:
> Unable to execute dex: Multiple dex files define
> <http://stackoverflow.com/questions/7870265/unable-to-execute-dex-multiple-dex-files-define-lcom-myapp-rarray>
> XXXX
> because those java files have already pre dexed into their jars, now the
> eclim-produced proto files conflict..

Eclim doesn't create any of those files. Eclim simply delegates to
eclipse/adt to perform all the work, so perhaps one of the answers in
that stackoverflow question you linked to could resolve the issue.
> > an email to eclim-user+...@googlegroups.com <javascript:>.
> > > To post to this group, send email to eclim...@googlegroups.com
> > <javascript:>.

小冶

unread,
Feb 7, 2015, 3:58:55 AM2/7/15
to eclim...@googlegroups.com
ok..that's caused by eclipse...
i have found a way to solve it: remove the bin/class directory before run ant every time.
thanks for your help!

在 2015年2月7日星期六 UTC+8上午1:53:26,Eric Van Dewoestine写道:
Reply all
Reply to author
Forward
0 new messages