Java 对 Eclipse 4.4 (Luna) 的 Google adt/gwt 支持

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24431005/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-14 12:09:44  来源:igfitidea点击:

Google adt/gwt support for eclipse 4.4 (Luna)

javaandroidgwtadtgoogle-plugin-eclipse

提问by MTilsted

Have anyone gotten the release version of eclipse 4.4 to work with adt(Android development) and/or google web toolkit(gwt).

有没有人获得了 eclipse 4.4 的发布版本来与 adt(Android 开发)和/或谷歌网络工具包(gwt)一起使用。

It seems like the gwt/adt plugins don't works with eclipse 4.4, so is there a secret place to download new versions or should I keep using 4.3 -(

似乎 gwt/adt 插件不适用于 eclipse 4.4,所以是否有一个秘密的地方可以下载新版本,或者我应该继续使用 4.3 -(

Edit: The reason I thought adt was not working was that the documentation(http://developer.android.com/sdk/installing/installing-adt.html) says that the plugin is called "ADT Plugin" which it is not.

编辑:我认为 adt 不起作用的原因是文档(http://developer.android.com/sdk/installing/installing-adt.html)说该插件被称为“ADT插件”,但它不是。

采纳答案by MrTux

Google just released its official SDK for Eclipse Luna: https://developers.google.com/eclipse/docs/getting_started

谷歌刚刚发布了 Eclipse Luna 的官方 SDK:https: //developers.google.com/eclipse/docs/getting_started

回答by MTilsted

For adt ,

对于广告,

help -> Install new Software -> https://dl-ssl.google.com/android/eclipse/-> don't select everything

帮助 -> 安装新软件 -> https://dl-ssl.google.com/android/eclipse/-> 不要全选

(it worked that way for me) i selected everything except Native development tools(i guess you don't need them if you debelop in java) and it's working well for me .

(它对我来说是这样的)我选择了除本机开发工具之外的所有东西(如果你在 Java 中进行开发,我想你不需要它们)并且它对我来说效果很好。

回答by raywang

well… the gwt plugin actually can not work with luna release since it has a bundle dependency for eclipse core.runtime [3.8.0,3.10.0), here, ")" means it NOT includes 3.10.0 wihich is used in luna, however, it can been get rid of by modifying the osgi bundle file and then it will works fine with luna ,at least for me for now.

嗯……gwt 插件实际上不能与 luna 版本一起使用,因为它有一个依赖于 eclipse core.runtime [3.8.0,3.10.0) 的包,这里,“)”意味着它不包括 3.10.0,在 luna 中使用,但是,它可以通过修改 osgi 包文件来摆脱,然后它可以在 luna 上正常工作,至少现在对我来说是这样。

1 download the last update site zip file from google eclipse plugin site 2 unpack it 3 then you will need to modify 2 files firstly

1 从 google eclipse 插件站点下载最新的更新站点 zip 文件 2 解压 3 然后你需要先修改 2 个文件

an osgi META INF/manifest file included in a jar named *gdt*e42 (sorry, forget the full name, you can find it when you are trying to install the plugin, luna will complain that some dep bundle is missed)that is located in plugins dir, just change core.runtime version from 3.10.0) to 3.10.0]

一个 osgi META INF/manifest 文件包含在一个名为 *gdt*e42 的 jar 中(抱歉,忘记了全名,你可以在尝试安装插件时找到它,luna 会抱怨一些 dep 包丢失),它位于在插件目录中,只需将 core.runtime 版本从 3.10.0) 更改为 3.10.0]

another one should be contents.jar (maybe artifacts. jar), same above

另一个应该是contents.jar(也许是artifacts.jar),同上

now you can install the plugin if you have already have the eclipse RCP installed

如果您已经安装了 eclipse RCP,现在您可以安装该插件

however, install will failed because the md5 hashing is changed,

但是,安装将失败,因为 md5 散列已更改,

finally, copy the expected md5 from error message dialog to replace the old md5 value in artifacts.jar(maybe contents.jar)

最后,从错误消息对话框中复制预期的 md5 以替换 artifacts.jar(可能是 contents.jar)中的旧 md5 值

now reinstall the plugin ,it should work for now

现在重新安装插件,它现在应该可以工作



UPDATED:

更新:

maybe you should remove the bundle-version from MANIFEST.MF at com.google.gdt.eclipse.platform.e42 jar and change the version to "0.0.0" from content.xml at content.jar

也许您应该从 com.google.gdt.eclipse.platform.e42 jar 中的 MANIFEST.MF 中删除 bundle-version 并将版本从 content.xml 中的 content.jar 更改为“0.0.0”

回答by Ojonugwa Jude Ochalifu

If you are using the Help----->Install New Softwareoption, you might encounter this error message just like i did trying to install the Android plugin.

如果您使用该Help----->Install New Software选项,您可能会遇到此错误消息,就像我尝试安装 Android 插件一样。

An error occurred during the org.eclipse.equinox.internal.p2.engine.phases.CheckTrust phase.
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.CheckTrust, operand=, action=).
Error reading signed content.
error in opening zip file

My solution was to go through Help-->Eclipse Marketplaceand then search for "Android"Select the plugin from the search result and install it from there.

我的解决方案是通过Help-->Eclipse Marketplace然后搜索"Android"从搜索结果中选择插件并从那里安装它。