Motodev核心插件 [英] Motodev Core Plugins

查看:135
本文介绍了Motodev核心插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

随着Motodev核心插件被公布在AOSP工具中( http://开发人员)。 Motorola.com/tools/motodevcoreplugins/ ),我一直在尝试不成功让他们在Eclipse中正常工作。



我已经按照下载的说明并安装所有内容。但是,一旦将插件的项目完全导入到我的新工作空间中,其中一些将显示构建错误。我已经尝试清理项目等,但仍然显示构建错误。



我决定继续尝试根据说明安装插件。一旦安装了插件,并且我完成了说明,我在菜单栏中看到了MOTODEV选项。但是,一旦我点击任何选项(即MOTODEV>新建>新的Android项目),没有任何反应。对于MOTODEV菜单中的每个选项,这一点是相同的。



有没有人得到了在现有Eclipse设置中正确构建和安装插件?如果是这样,我是否缺少某些东西?



谢谢。



更新:我还发现安装这些插件根据说明将打破Eclipse中工具栏中的运行按钮。现在根本就不做任何事情。我必须右键单击项目,并从上下文菜单中执行运行方式。显然不是一个巨大的问题...但仍然是一个烦恼。另外,我在OSX设置中注意到这一点:



如果我点击新建 - 新建Android项目,我注意到错误日志中出现此错误:



错误Tue Oct 02 11:50:32 CDT 2012未处理的事件循环异常
org.eclipse.e4.core.di.InjectionException:org.eclipse.core.commands。 NotHandledException:在org.eclipse.e4的org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)命令中没有执行命令com.motorola.studio.android.new.project的处理程序。org.eclipse.e4.core.contexts上的org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:210)中的.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:229) 。org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem中的org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)上的.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131) .executeItem(HandledContributionItem.java:814)在org.eclipse.e4.ui.wo在org.eclipse.e4.ui上的org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access $ 7(HandledContributionItem.java:691)上的rkbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:707)在org.eclipse.e4.core.internal.di上的org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)中的.workbench.renderers.swt.HandledContributionItem $ 4.handleEvent(HandledContributionItem.java:630)。 MethodRequestor.execute(MethodRequestor.java:56)... 37更多

解决方案

两天后,我得到了MOTODEV Core Plugin在Eclipse中
一般来说,请遵循以下说明 http://developer.motorola.com/tools/motodevcoreplugins/


  1. 您需要100%全新安装的Java EE。如果你在Windows 32bit版本的Windows。我已经安装了Juno Java EE。这个安装包括MOTODEV工作所需的软件包。

我在这里找到:
http://download.eclipse.org/eclipse/downloads/eclipse3x.html


  1. 下一步安装ADT

ADT < a href =https://dl-ssl.google.com/android/eclipse/ =nofollow noreferrer> https://dl-ssl.google.com/android/eclipse/


  1. 从Eclipse下载页面安装Sequoyah(不是MOTODEV网站上的)

http://download.eclipse .org / sequoyah / updates / 2.0 /



4.安装MOTODEV时,
删除不需要的MOTODEV软件包,如linus,macos和com.motorola.studio.android.wind32.x86_64


  1. 安装Sequoya h再次,这次从MOTODEV的规定
    Sequoyah http ://download.eclipse.org/sequoyah/updates/2.1/2.1.1.N20120718-0509

在这一点,你的项目应该没有错误。



现在运行MOTODEV,
选择软件包com.motorola.studio.android并以Eclipse应用程序运行



接下来将打开一个窗口,在主窗口中显示MOTODEV菜单。




With the announcement of the Motodev core plugins being included in the AOSP tools (http://developer.motorola.com/tools/motodevcoreplugins/), I have been trying unsuccessfully to get them to work properly in Eclipse.

I have followed the instructions on downloading and installing everything. However, once the projects for the plugins are completely imported into my new workspace, a few of them show build errors. I have tried cleaning the projects, etc. but they still show build errors.

I decided to go ahead and try to install the plugins according to the directions. Once the plugins were installed and I completed the instructions, I see the MOTODEV option up in the menu bar. However, once I go to click on any of the options (i.e. MOTODEV > New > New Android Project), nothing happens. This is the same for every option in the MOTODEV menu.

Has anybody gotten the plugins to build and install correctly in their existing Eclipse setup? If so, am I missing something?

Thanks.

UPDATE: I have also discovered that installing these plugins per the instructions breaks the "Run" button in the toolbar in Eclipse. It simply doesn't do anything for me now. I have to right click the project and do Run As from the context menu. Obviously not a huge issue...but still an annoyance. Also, I noticed this on my OSX setup:

If I click "New -> New Android Project" I notice this error appears in the error log:

Error Tue Oct 02 11:50:32 CDT 2012 Unhandled event loop exception org.eclipse.e4.core.di.InjectionException: org.eclipse.core.commands.NotHandledException: There is no handler to execute for command com.motorola.studio.android.new.project at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63) at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:229) at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:210) at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131) at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:814) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:707) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:691) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:630) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56) ... 37 more

解决方案

After two days I got MOTODEV Core Plugin to work in Eclipse. In general follow these directions http://developer.motorola.com/tools/motodevcoreplugins/

  1. You need a 100% fresh install of Java EE. If you are on windows stick with 32bit version. I have Juno Java EE installed. This install includes packages that are necessary for MOTODEV to work.

I got it here: http://download.eclipse.org/eclipse/downloads/eclipse3x.html

  1. Next install ADT

ADT https://dl-ssl.google.com/android/eclipse/

  1. Install Sequoyah from the Eclipse Download page, (not what is on MOTODEV's site)

http://download.eclipse.org/sequoyah/updates/2.0/

4.When installing MOTODEV, Remove MOTODEV packages you don't need like linus, macos and com.motorola.studio.android.wind32.x86_64

  1. install Sequoyah again, this time from MOTODEV's specifcations Sequoyah http://download.eclipse.org/sequoyah/updates/2.1/2.1.1.N20120718-0509

At this point, there should be no errors in your project.

Now to run MOTODEV, select package com.motorola.studio.android and run as 'Eclipse Application'

Next a window will open that has the MOTODEV menu in the main window.

这篇关于Motodev核心插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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