Motodev Core Plugins

試著忘記壹切 提交于 2019-12-18 17:14:23

问题


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


回答1:


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.




回答2:


Look at the errors, they provide information about the tools you are missing. After I've gone through the motodev tutorial, I had to install Web Service Tools, Database Tools (DTP) and Memory Analizer Tool (MAT). Also, Leoa is right, for people using windows, stick with win32, even if your windows is x64.



来源:https://stackoverflow.com/questions/12692865/motodev-core-plugins

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