Android Studio 与 Eclipse + ADT 插件?

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

Android Studio vs Eclipse + ADT Plugin?

androideclipseandroid-studio

提问by gahfy

I would like to have objective answers about this question :

我想对这个问题有客观的回答:

Why should I use Android Studio, encounter issues and complex tasks for, for example, importing libraries which are developed for Eclipse, having less support about bug I may encounter, ... rather than continuing using Eclipse ?

为什么我应该使用 Android Studio,遇到问题和复杂的任务,例如,导入为 Eclipse 开发的库,对我可能遇到的错误的支持较少,......而不是继续使用 Eclipse ?

What are the real advantages of Android Studio vs Eclipse ?

Android Studio 与 Eclipse 的真正优势是什么?

采纳答案by Lukas Knuth

The last update is now more than a year old, so here goes another update (25th of October 2016):

上次更新现在已经一年多了,所以这里有另一个更新(2016 年 10 月 25 日)

TL;DR

TL; 博士

  • Eclipse ADT has been deprecatedand should no longer be used.
  • Android Studio is a stable productand is updated much more frequently than IntelliJ
  • I chose to use Android Studio over IntelliJ about a year ago and haven't looked back.
  • When in doubt, use Android Studio.
  • Eclipse ADT 已被弃用,不应再使用。
  • Android Studio 是一个稳定的产品,更新频率比 IntelliJ 高得多
  • 大约一年前,我选择使用 Android Studio 而不是 IntelliJ,并且一直没有回头。
  • 如有疑问,请使用 Android Studio。

IntelliJ over Android Studio

基于 Android Studio 的 IntelliJ

The only reason I can see for using IntelliJ over Android Studio is if you're using the Ultimate edition. It has a lot more pluginsthat you can use with the IDE. If you're using the Ultimate edition already and don't want to use two IDE's simultaneously, there is no reason to switch over to Android Studio (except bleeding-edge features).

我认为在 Android Studio 上使用 IntelliJ 的唯一原因是您使用的是 Ultimate 版。它有更多的插件可以与 IDE 一起使用。如果您已经在使用 Ultimate 版并且不想同时使用两个 IDE,则没有理由切换到 Android Studio(尖端功能除外)。

Android Studio does ship with the C/C++ Plugin now, but AFAIK, there is still no support for HTML/CSS/JS (which is helpful with all these hybrid frameworks these days).

Android Studio 现在确实附带了 C/C++ 插件,但 AFAIK,仍然不支持 HTML/CSS/JS(这对所有这些混合框架都有帮助)。



For the sake of keeping this answer short, I have opted to remove all previous (and outdated) statements, instead of just strikingthem. Feel free to browse the edit-historyif you're interested!

为了保持这个答案简短,我选择删除所有以前的(和过时的)陈述,而不是仅仅敲击它们。如果您有兴趣,请随时浏览编辑历史

回答by Raul Huerta

Eclipse + ADT sometimes feels like an unfinished product anyways. If you like trying new things or you are not a fan of Eclipse I would suggest going for Android Studio, if you are right now happy with Eclipse, just stay with it until Android Studio is mature enough to move on.

无论如何,Eclipse + ADT 有时感觉就像一个未完成的产品。如果您喜欢尝试新事物或者您不是 Eclipse 的粉丝,我建议您使用 Android Studio,如果您现在对 Eclipse 感到满意,请继续使用它,直到 Android Studio 成熟到可以继续前进。

回答by Delete

Great question, the answer is much longer than what I can reasonably post in an SO answer.

好问题,答案比我在 SO 答案中合理发布的要长得多。

If you are new to Android you should absolutely be using Android Studio. By using Eclipse you are going to be learning an outdated IDE (for Android specifically) which Google has strongly indicated they are not going to be supporting in the future. It is much better to learn the skill you are going to be using 2 years from now.

如果您是 Android 新手,您绝对应该使用 Android Studio。通过使用 Eclipse,您将学习一个过时的 IDE(特别是针对 Android),Google 已强烈表示他们将来不会支持该 IDE。学习两年后将要使用的技能会好得多。

Also: Android Studio has come a long way and been updated multiple times. It was definitely more shaky in the past but I have now used it for two separate Android app projects without issue.

另外:Android Studio 已经取得了长足的进步,并且已经多次更新。过去它肯定更加不稳定,但我现在已经将它用于两个单独的 Android 应用程序项目,没有问题。

I have also written two comprehensive articles on this topic for anyone who wants the complete in-depth details. If you are still on the fence about which to use then you can read either:

我还为任何想要完整深入细节的人写了两篇关于这个主题的综合文章。如果您仍然对使用哪种方法犹豫不决,那么您可以阅读:

If you just want a general overview of the differences:

如果您只想大致了解这些差异:

http://www.airpair.com/android/android-studio-vs-eclipse

http://www.airpair.com/android/android-studio-vs-eclipse

For Migrating from Eclipse:

对于从 Eclipse 迁移:

http://rexstjohn.com/exporting-android-project-eclipse-android-studio-0-4-0/

http://rexstjohn.com/exporting-android-project-eclipse-android-studio-0-4-0/

回答by Israel Varea

Additional Pro:

附加专业:

Android Studio is ready for Android projects that use Gradle as their building system. Gradle is becoming the standard for building and testing your Android application. Check the Gradle Plugin User Guidein Android's website .

Android Studio 已准备好用于使用 Gradle 作为构建系统的 Android 项目。Gradle 正在成为构建和测试 Android 应用程序的标准。查看Android 网站中的Gradle 插件用户指南

By the time of writing this answer, the ADT plugin for Eclipse does not support a Gradle layout style. Some hacking has to be done if you want to use Eclipse+Android+Gradle and an Android project with a Gradle directory layout what is quite inconvenient. See Integration of Eclipse with Gradle in an Android project.

在撰写此答案时,Eclipse 的 ADT 插件不支持 Gradle 布局样式。如果您想使用 Eclipse+Android+Gradle 和带有 Gradle 目录布局的 Android 项目,则必须进行一些黑客攻击,这非常不方便。请参阅在 Android 项目中将 Eclipse 与 Gradle 集成

回答by Paul Verest

Why should I use Android Studio, encounter issues and complex tasks for, for example, importing libraries which are developed for Eclipse, having less support about bug I may encounter, ... rather than continuing using Eclipse ?

为什么我应该使用 Android Studio,遇到问题和复杂的任务,例如,导入为 Eclipse 开发的库,对我可能遇到的错误的支持较少,......而不是继续使用 Eclipse ?

You should not if you don't want to. You can try this new software or wait for the same on Eclipse platform. See http://tools.android.com/roadmap

如果你不想,你不应该。您可以尝试这个新软件,或者在 Eclipse 平台上等待相同的软件。请参阅http://tools.android.com/roadmap

Android Studio

  • Gradle Build system deep integration
  • ADT Feature parity

Eclipse plug-ins

  • Visual layout editor
  • Resource manager
  • Theme editor
  • Better refactoring support

安卓工作室

  • Gradle Build 系统深度集成
  • ADT 功能奇偶校验

Eclipse 插件

  • 可视化布局编辑器
  • 资源管理器
  • 主题编辑器
  • 更好的重构支持

That is while Android Studio is pushing with gradle, it is not yet on ADT Feature parity.

也就是说,虽然 Android Studio 正在推动 gradle,但它尚未达到 ADT 功能平价。

What are the real advantages of Android Studio vs Eclipse ?

Android Studio 与 Eclipse 的真正优势是什么?

It is based on other platform: IntelliJ. Eclipse, IntelliJ, NetBeans and other platforms all have their users, features, bugs and plans for development. So if you starting using Android Studio you should learn from IntelliJ users, that should tell you about those features and how to avoid bugs.

它基于其他平台:IntelliJ。Eclipse、IntelliJ、NetBeans 和其他平台都有自己的用户、功能、错误和开发计划。因此,如果您开始使用 Android Studio,您应该向 IntelliJ 用户学习,这应该会告诉您这些功能以及如何避免错误。

In the end it is just another software to do the same.

最后它只是另一个软件来做同样的事情。

Read Is it possible to use the Gradle build system for Android with Eclipse?that have much more links about Android with gradle in Eclipse.

阅读是否可以在 Eclipse 中使用 Android 的 Gradle 构建系统?有更多关于 Android 与 Eclipse 中的 gradle 的链接。

Try Nodeclipse/Enide Gradle for Eclipse(marketplace) if you want to experiment or fully use as additional build system right now.

如果您想立即尝试或完全用作附加构建系统,请尝试使用Nodeclipse/Enide Gradle for Eclipse( marketplace)。

Some screenshots for Gradle for Eclipse by Nodeclipse/Enide effort. Like Android Studio it is under development.

Nodeclipse/Enide提供的 Gradle for Eclipse 的一些屏幕截图 。与 Android Studio 一样,它正在开发中。

回答by ozo

As an old eclipse user, after reading "Android Studio vs Eclipse" comments, I stayed with Eclipse. However, I stucked with Gradle build and finally I decided to switch to Android Studio, et voila: it's such an easy environment! I built my project with Gradle in a minute and I didn't spend any extra minute although I am completely stranger to this product.

作为一个eclipse的老用户,在阅读了“Android Studio vs Eclipse”的评论后,我还是选择了Eclipse。然而,我坚持使用 Gradle 构建,最后我决定切换到 Android Studio,等等:这是一个如此简单的环境!我在一分钟内用 Gradle 构建了我的项目,虽然我对这个产品完全陌生,但我没有花任何额外的时间。

回答by Holf

As a seasoned Visual Studio + ReSharper user who has not been writing Android apps for long, I'm finding Android Studio far more intuitive than Eclipse. Many of the keyboard shortcuts I am used to simply work in just the same way. I was concerned that the learning curve would be steeper as there are so many more Eclipse-friendly tutorials and examples out there just now but so far I've been able to translate everything pretty easily into the Android Studio world, whenever necessary.

作为一名经验丰富的 Visual Studio + ReSharper 用户,并没有长时间编写 Android 应用程序,我发现 Android Studio 比 Eclipse 直观得多。我习惯使用的许多键盘快捷键都以同样的方式工作。我担心学习曲线会更陡峭,因为现在有更多 Eclipse 友好的教程和示例,但到目前为止,我已经能够在必要时轻松地将所有内容转换到 Android Studio 世界中。

Had I come from a Java / Eclipse background I'm sure I would feel differently about it.

如果我来自 Java / Eclipse 背景,我相信我会对它有不同的感觉。

It also seems to me (at time of writing some months after other answers that mention bugs) that Android Studio is very stable and feature complete, although I'm not exactly what I'd call a Power User (yet).

在我看来(在其他提到错误的答案几个月后撰写本文时)Android Studio 非常稳定且功能完整,尽管我还不是我所说的高级用户。

Which ever platform you currently use, an hour or so spent playing with the other will probably tell you more than any number of SO answers or blog posts.

您目前使用哪个平台,与另一个平台一起玩一个小时左右,可能会比任何数量的 SO 答案或博客文章告诉您更多。

回答by Mrityunjay

Few advantages are:

几个优点是:

  1. Its exclusively made for Android Platform, its not plugin.
  2. It will get platform updates quicker.
  3. Eclipse plugin development intensity will decreased slowly if not stop in coming days.
  4. Its looking really good in black theme.
  5. Emulator are looking niche.
  1. 它专为 Android 平台制作,而不是插件。
  2. 它将更快地获得平台更新。
  3. 未来几天Eclipse插件开发强度如果不停止,将缓慢下降。
  4. 它在黑色主题中看起来非常好。
  5. 模拟器正在寻找利基市场。