开发 Android 应用程序的最佳 IDE 是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1715697/
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
What is the best IDE to develop Android apps in?
提问by Jamey McElveen
I am about to start developing an android app and need to get an IDE. Eclipse and the android eclipse plugin appears to be the natural choice. However I am familiar with intelliJ and re-sharper so I would prefer use intelliJ.
我即将开始开发一个 android 应用程序,需要一个 IDE。Eclipse 和 android eclipse 插件似乎是自然的选择。但是我熟悉 intelliJ 并重新锐化,所以我更喜欢使用 intelliJ。
Has anyone used https://code.google.com/archive/p/idea-android/? Is this any good?
有人用过https://code.google.com/archive/p/idea-android/吗?这有什么好处吗?
Should I just bite the bullet and learn Eclipse?
我应该咬紧牙关学习 Eclipse 吗?
采纳答案by Pierre-Antoine LaFayette
LATEST NEWS
最新消息
Android Studio has officially come out of beta and been released. It is now the official IDE for Android Development - Eclipse won't be supported anymore. It is definitely the IDE of choice for Android Development. Link to download page: http://developer.android.com/sdk/index.html
Android Studio 已经正式走出测试版并发布。它现在是 Android 开发的官方 IDE - 将不再支持 Eclipse。它绝对是 Android 开发的首选 IDE。下载页面链接:http: //developer.android.com/sdk/index.html
NEWS
消息
As of Google I/O 2013, the Android team has moved to IntelliJ Idea with the new Android Studio IDE: http://developer.android.com/sdk/installing/studio.html
从 Google I/O 2013 开始,Android 团队已经使用新的 Android Studio IDE 迁移到 IntelliJ Idea:http: //developer.android.com/sdk/installing/studio.html
Great to see Google endorse Idea. It is safe to say that Android Studio, and thus Idea, will from now on be the definitive IDE for Android development! :D
很高兴看到 Google 认可 Idea。可以肯定地说,从现在开始,Android Studio 和 Idea 将成为 Android 开发的权威 IDE!:D
ORIGINAL ANSWER
原答案
IntelliJ now has support for Android. See Enabling Android Supportfrom the JetBrains help page and the Google Code project pagefor the plugin. The Getting Startedwiki page is pretty helpful.
IntelliJ 现在支持 Android。请参阅JetBrains 帮助页面和插件的Google 代码项目页面中的启用 Android 支持。该入门wiki页面是非常有益的。
If you are used to IntelliJ, I don't think it would be beneficial to switch IDEs just for Android tools. You can work on Android with any text editor (I use Vim). If you're more productive with a specific environment I don't see why you'd have to learn a new one. Not worth it in my opinion. Plus I'm a big IntelliJ fan. The IntelliJ plugin lets you make apk files and push the app to the emulator, that's all you need for Android app development. I'd say you're safe sticking with IntelliJ.
如果你习惯了 IntelliJ,我认为只为 Android 工具切换 IDE 是没有好处的。您可以使用任何文本编辑器在 Android 上工作(我使用 Vim)。如果您在特定环境中更有效率,我不明白为什么您必须学习新环境。在我看来不值得。另外,我是 IntelliJ 的忠实粉丝。IntelliJ 插件可让您制作 apk 文件并将应用程序推送到模拟器,这就是 Android 应用程序开发所需的全部内容。我会说你可以安全地坚持使用 IntelliJ。
Update: there is now an official free IDE for IntelliJ android dev! http://blogs.jetbrains.com/idea/2010/10/intellij-idea-10-free-ide-for-android-development/
更新:现在有一个用于 IntelliJ android 开发的官方免费 IDE!http://blogs.jetbrains.com/idea/2010/10/intellij-idea-10-free-ide-for-android-development/
回答by Bill the Lizard
Eclipse is not that hard to learn (I use both Eclipse and NetBeans, and I switch back and forth pretty effortlessly). If you're going to be learning Android development from the start, I can recommend Hello, Android, which I just finished. It shows you exactly how to use all the features of Eclipse that are useful for developing Android apps. There's also a brief section on getting set up to develop from the command line and from other IDEs.
Eclipse 并不难学(我同时使用 Eclipse 和 NetBeans,我可以毫不费力地来回切换)。如果你打算从头开始学习 Android 开发,我可以推荐你好,Android,我刚刚完成。它准确地向您展示了如何使用 Eclipse 的所有对开发 Android 应用程序有用的功能。还有一个简短的部分介绍了如何设置以从命令行和其他 IDE 进行开发。
回答by jcollum
Of the existing IDEs, Ted Newardranks them this way:
在现有的 IDE 中,Ted Neward是这样排列的:
Best: IntelliJ IDEA
Second: Netbeans
Third: Eclipse
最佳:IntelliJ IDEA
二:网豆
三:日蚀
He seems to think that Eclipse throws up a lot of "friction"; hard to say what that means.
他似乎认为Eclipse引发了很多“摩擦”;很难说这是什么意思。
Edit, years later: After attempting to use Eclipse/Aptana for node development and using JetBrains products for node and ruby development I would absolutely start with IntelliJ IDEA and give that a try for the 30 day trial.
多年后编辑:在尝试使用 Eclipse/Aptana 进行节点开发并使用 JetBrains 产品进行节点和 ruby 开发后,我绝对会从 IntelliJ IDEA 开始并尝试进行 30 天的试用。
回答by Alex
Unfortunately, there is no perfect IDE for Android. Eclipse has more features as it is the only IDE google developed plugin for. However, if you are just like me, tired of crashes and weired debug/develop mode swithes, Use Netbeans plugin from http://nbandroid.kenai.com.
不幸的是,Android 没有完美的 IDE。Eclipse 具有更多功能,因为它是谷歌开发的唯一 IDE 插件。但是,如果您和我一样,厌倦了崩溃和奇怪的调试/开发模式切换,请使用http://nbandroid.kenai.com 上的Netbeans 插件。
回答by Alex
If you do android native code development using NDK, give Visual Studio a try. (Not a typo!!!) Check out: http://ian-ni-lewis.blogspot.com/2011/01/its-like-coming-home-again.html
如果您使用 NDK 进行 android 本机代码开发,请尝试使用 Visual Studio。(不是错字!!!)查看:http: //ian-ni-lewis.blogspot.com/2011/01/its-like-coming-home-again.html
回答by Varundroid
I think intellijis the best option for android. i have used both eclipse and intellij and found intellij is much easier to use with android as compared to eclipse because of these reasons :-
我认为intellij是 android 的最佳选择。我同时使用了 eclipse 和 intellij,发现与 eclipse 相比,intellij 在 android 上更容易使用,原因如下:-
Intellij provides a built-in support for android and you don't have to configure it as you need to do with eclipse. Intellij gives you auto-lookup feature which is really important for developer like us to increase our productivity. And if we talk about eclipse you have to type each and every method, classname etc on your own. (May be eclipse has this feature too but i never found it and trust me i tried to find it like anything) Its much more user friendly and easy to use than eclipse. I hope it will help you and other members of stack overflow to decide which IDE is best for Android development.
Intellij 提供了对 android 的内置支持,您不必像使用 eclipse 那样对其进行配置。Intellij 为您提供自动查找功能,这对于像我们这样的开发人员提高生产力非常重要。如果我们谈论 eclipse,您必须自己键入每个方法、类名等。(可能 eclipse 也有这个功能,但我从来没有找到它,相信我,我试图找到它,就像任何东西一样)它比 eclipse 更加用户友好和易于使用。我希望它能帮助你和堆栈溢出的其他成员决定哪个 IDE 最适合 Android 开发。
My personal choice is Intellij.
我个人的选择是 Intellij。
EDIT
编辑
But there is one thing i love about eclipse and that is visual layout creator. You can use drag and drop technique to create a layout and eclipse will automatically generate an XML file for you just like XCODE.
但是我喜欢 eclipse 的一件事,那就是视觉布局创建者。您可以使用拖放技术来创建布局,Eclipse 会像 XCODE 一样为您自动生成一个 XML 文件。
EDIT
编辑
Good News!! Intellij added a new feature which shows how your app's view is going to look like. It doesn't work exactly like Eclipse but it will give you a good idea about your layout.
好消息!!Intellij 添加了一项新功能,可显示您的应用程序视图的外观。它不像 Eclipse 那样工作,但它会让你对你的布局有一个很好的了解。
My personal choice is still Intellij because it helps me to type faster than eclipse.
我个人的选择仍然是 Intellij,因为它比 eclipse 帮助我打字更快。
EDIT
编辑
Ok guys these days i am using eclipse juno and found its kind of buggy and slow. So if you still want to use eclipse better stick to some older version. And finally i am able to found how to enable auto-complete in eclipse. Below is a small tutorial.
好吧,这些天我正在使用 eclipse juno 并发现它的那种马车和缓慢。因此,如果您仍然想使用 eclipse,最好坚持使用一些旧版本。最后我找到了如何在 Eclipse 中启用自动完成功能。下面是一个小教程。
Eclipse -> Preference - > Java -> Editor -> Content Assist -> Auto Activation
Eclipse -> Preference -> Java -> Editor -> Content Assist -> Auto Activation
Now put following in the three given boxes
现在将以下内容放入三个给定的框中
Auto Activation delay(ms) - 0
Auto activation triggers for java - .(abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
Auto activation triggers for javadoc - @#
You are now good to go. Happy coding.
你现在可以走了。快乐编码。
EDIT
编辑
As now Google has adopted Intellij for their own Android dev tool, there is no question now about which one is better. Intellij is far far better than eclipse. And i switched back to Intellij and it feels like i am back home!! :D
由于现在谷歌已经将 Intellij 用于他们自己的 Android 开发工具,现在毫无疑问哪个更好。Intellij 远比 Eclipse 好得多。然后我切换回 Intellij,感觉就像回到家一样!!:D
回答by Melinda Green
All of the full-featured Java IDE's are good and share all of the same concepts and main features. If you can find your way around one you can probably do the same for any other without much trouble.
所有功能齐全的 Java IDE 都很好,并且共享所有相同的概念和主要功能。如果你能找到一种方法,你可能可以对任何其他人做同样的事情而不会遇到太多麻烦。
EDIT: Google gave us a wonderful gift with the new and free AndroidStudio is very good. I highly recommend it over Eclipse.
编辑:谷歌给了我们一个很棒的礼物,新的和免费的 AndroidStudio 非常好。我强烈推荐它而不是 Eclipse。
回答by gary
An IDE which supports Android development is Processingfor Android: http://wiki.processing.org/w/Android. Processing is its own language but it's easy to learn. Processing for Android requires the JDK and Android SDK to be installed but runs on its own. It runs on Linux, Mac OSX and Windows (on a side note: one can develop a desktop app in Processing and then compile it to target any of these operating systems). Its development is ongoing but it works. It's especially good for quickly sketching up an idea and running it on your Android phone (even if you plan to develop it further in another IDE).
支持 Android 开发的 IDE 是Processingfor Android:http: //wiki.processing.org/w/Android。处理是它自己的语言,但它很容易学习。Android 的处理需要安装 JDK 和 Android SDK,但它自己运行。它在 Linux、Mac OSX 和 Windows 上运行(附带说明:可以在 Processing 中开发桌面应用程序,然后编译它以针对这些操作系统中的任何一个)。它的开发正在进行中,但它有效。它特别适合快速勾勒出一个想法并在您的 Android 手机上运行它(即使您打算在另一个 IDE 中进一步开发它)。
There is an active support forum here: http://forum.processing.org/android-processing.
这里有一个活跃的支持论坛:http: //forum.processing.org/android-processing。
回答by ajacian81
If you haven't installed Eclipse yet, I'd recommend Motorola's MotoDev Studio. It does a lot of the annoying little tasks like set up your Android environment along with your paths, and adds a lot of nice built in functionality to Eclipse.
如果您还没有安装 Eclipse,我会推荐摩托罗拉的 MotoDev Studio。它完成了很多烦人的小任务,比如设置你的 Android 环境和你的路径,并为 Eclipse 添加了很多很好的内置功能。
Even if you've already installed Eclipse, you can add it as a plugin (I haven't tried that myself). It isby Motorola, so they have some Motorola centric functionality as well, such as the ability to add your app to the Motorola market. Anyway if you're interested, give it a shot: http://developer.motorola.com/docstools/motodevstudio/
即使您已经安装了 Eclipse,您也可以将其添加为插件(我自己还没有尝试过)。它是由摩托罗拉提供的,因此他们也有一些以摩托罗拉为中心的功能,例如能够将您的应用程序添加到摩托罗拉市场。无论如何,如果您有兴趣,请试一试:http: //developer.motorola.com/docstools/motodevstudio/
回答by sandalone
I've been using IntelliJ IDEA for the last 12 months now as my main IDE, but I am often forced to use Eclipse as well. So when I have to work in Eclipse I start biting my nails. I will sum up my pros and cons.
在过去的 12 个月里,我一直在使用 IntelliJ IDEA 作为我的主要 IDE,但我也经常被迫使用 Eclipse。所以当我不得不在 Eclipse 中工作时,我开始咬指甲。我总结一下我的优点和缺点。
Eclipse pros:
- visual editor. IDEA has one as well, but it's rather primitive. I suspect that this feature will soon be deleted as IDEA will improve its editor.
- many projects into one right pane (this is also my personal con as I like IDEA's one-project-per-pane thing)
- faster compiles Android projects. IDEA has made its compilation process faster, so I also soon expect to delete this Eclipse pro
Eclipse 优点:
- 可视化编辑器。IDEA 也有,但它相当原始。我怀疑这个功能很快就会被删除,因为 IDEA 将改进其编辑器。
- 将多个项目整合到一个右侧窗格中(这也是我个人的缺点,因为我喜欢 IDEA 的每个窗格一个项目)
- 更快地编译 Android 项目。IDEA 使得它的编译过程更快,所以我也很快希望删除这个 Eclipse pro
IDEA pros:
- faster intellisense (if you like Resharper, then you know what I am talking about)
- smarter autocomplete - my friend and I decided to write the same class. I finished before him simply because IDEA faster reacts to my wishes
- incredibly smart - do not know what to do? just press Ctrl+Shift+Space and IDEA will tell you what should come there. It also recognizes naming scheme to if you're filling name
object, it will first display getName
method.
- will add more as I remember of them
IDEA 优点:
- 更快的智能感知(如果你喜欢 Resharper,那么你知道我在说什么)
- 更智能的自动完成 - 我和我的朋友决定编写同一个类。我在他面前完成只是因为 IDEA 更快地响应了我的愿望
——非常聪明——不知道该怎么办?只需按 Ctrl+Shift+Space,IDEA 就会告诉你应该出现什么。它还识别命名方案,如果您正在填充name
对象,它将首先显示getName
方法。
- 当我想起它们时会添加更多
IDEA cons:
- Still the only con is that if you open Eclipse Android project and edit any XML layout file, Eclipse will no longer be able to display edited file into its visual layout editor. This has not been fixed as of this day and it's IDEA's bug as it somehow messes the XML.
IDEA 的缺点:
- 唯一的缺点是,如果您打开 Eclipse Android 项目并编辑任何 XML 布局文件,Eclipse 将无法再将编辑过的文件显示到其可视化布局编辑器中。到目前为止,这还没有得到修复,这是 IDEA 的错误,因为它以某种方式弄乱了 XML。
Bottom line: if you're a person who does not see advantages of ReSharper in .NET (and we all coded in .NET), then you'll probably stick to Eclipse. It's official Android IDE and you believe it's the best.
If you liked ReSharper and want to code faster, then you'll appreciate IDEA and will stick to it forever.
底线:如果您看不到 ReSharper 在 .NET 中的优势(我们都使用 .NET 编写代码),那么您可能会坚持使用 Eclipse。它是官方的 Android IDE,您相信它是最好的。
如果您喜欢 ReSharper 并希望更快地编写代码,那么您会喜欢 IDEA 并将永远坚持下去。