Eclipse Juno 和 android maven 插件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11379670/
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-09-19 18:29:14  来源:igfitidea点击:

Eclipse Juno and android maven plugin

androideclipsemaven

提问by JustDanyul

I'm having alot of pain getting some of my android projects to run on eclipse 4.2, they run fine in Indigo , but not so much in Juno.

让我的一些 android 项目在 eclipse 4.2 上运行时我感到很痛苦,它们在 Indigo 中运行良好,但在 Juno 中则不然。

I'm using the android maven plugin, and they also runs fine from the console, using

我正在使用 android maven 插件,它们也可以从控制台正常运行,使用

mvn android:run

But after importing the projects into Juno, I get the following errors

但是在将项目导入 Juno 后,出现以下错误

An internal error occurred during: "Importing Maven projects".
com/android/io/StreamException

and

WARNING: unable to write jarlist cache file /path-to-project-bin/jarlist.cache

Then when trying to run the project, I get the following error in the console

然后在尝试运行项目时,我在控制台中收到以下错误

R.java was modified manually! Reverting to generated version!

and the application crash on startup.

和应用程序在启动时崩溃。

Have anybody seen similar problems with Juno?

有人在 Juno 上看到过类似的问题吗?

回答by Ricardo Gladwell

This is a known issue with the m2e-android connectorcaused by the update for ADT version 20.0.0 that is being worked on:

这是由正在处理的 ADT 版本 20.0.0 更新引起的 m2e -android 连接器的已知问题:

https://github.com/rgladwell/m2e-android/issues/89

https://github.com/rgladwell/m2e-android/issues/89



Update: The new 0.4.2 release fixes this issue was released today, please run an Eclipse update (Help -> Check for Updates) and let me know if this resolves your problems.

更新:今天发布了新的 0.4.2 版本修复了这个问题,请运行 Eclipse 更新(帮助 -> 检查更新)并告诉我这是否解决了您的问题。