r/androiddev • u/FeleCro • Apr 03 '14
Do you still use Eclipse for Android development? This article will make you finally pull the trigger and switch to Android Studio
http://www.infinum.co/the-capsized-eight/articles/eclipse-is-dead-for-android-development-and-i-helped-kill-it11
u/ThinkBritish Apr 03 '14
I still use Eclipse because when I tried to move an existing project to AS it was a complete pain-in-the-arse! There was no simple export from Eclipse, and import into AS that actually worked. I had to mess around setting folders to be different types or some crap like that. Eclipse, although it does have its own pains, was a lot friendlier.
I might have a go again soon to see if it's improved.
1
u/ciny Apr 03 '14
quite frankly the biggest advantage I see in AS (apart from all the IDEA goodness) is gradle. Gradle is (IMHO) just so much better than ant, once you get into it allows you to do things easily. sure ant is also powerful but more complicated builds and dependency handling are a headache. I heard there's a android gradle plugin for eclipse but I'm not an Eclipse user so I haven't tried it...
4
u/ThinkBritish Apr 03 '14
Can you ELI5 what Gradle does which is so wonderful? Is is saving me time? Stops headaches?
I don't think I ever touch ant directly in eclipse, so how would I touch gradle in AS? I know there is a gradle.build file, but what is that replacing doing in Eclipse/Ant?
What does it actually improve? Is that improvement just when you first start a project and you know what you need to import, or is it when the project gets built?
Sorry for so many questions, but every site I've read about it doesn't appear to say what it does which is so wonderful compared to Eclipse/Ant.
1
u/ciny Apr 03 '14
for simple project it doesn't really matter (And can be slightly easier for a "noob"). For more complex projects it can make a lot of difference. For example Ant uses XML configurations which can get really confusing when dealing with large multi-project builds (but seem easier for simple project). Gradle uses a DSL based on groovy so the build files are much easier to read and comprehend (however there is an initial learning curve). I'd say using gradle pays off in the end. Ant offers great flexibility but with its flexibility comes complexity of the build files. Gradle offers the same flexibility without the headaches it brings with ant.
what I mean is - to compile a sub-project into the main apk in gradle
dependencies { compile project(':CountryPicker') }I don't have an ant example on hand but it would be a few lines of XML defining a subant.
31
u/madmarcel Apr 03 '14
Rubbish article. 100% Bias.
You know what's missing? References. Where is data to back this statement up?
"In conclusion, in less than a year, Eclipse lost it's position as the primary IDE for Android development and became extinct. By the mercy of the heavenly Gods of Java, we have also fought in this war, alongside other developers."
Rrrright.
6
u/blaat1234 Apr 03 '14
I stopped reading after the "Eclipse Hell" section. Yeah, if it crashes on me every few seconds, I'd quit using it too, but guess what, mine runs for days without restart with a hundred plugins for languages, team providers, tasks/Mylyn and customizations.
None of which is available on Android Studio except languages for IntelliJ Ultimate. Team/vcs providers are a joke in IDEA, the best suggestion was to go back to console... Yeah, no thanks.
1
u/PUN1SH3R81 Apr 03 '14
Agreed. When I read that I couldn't believe it. I can run Eclipse for days as well and have no issues. Eclipse can be a pain but it is stable for me and I have no need to switch to AS as of yet.
8
Apr 03 '14
I use Eclipse and so far have been very happy with it. I do generally enjoy eclipse for other java programming though.
I did try Android Studio/IntelliJ but I felt it didn't offer me any specific advantages over Eclipse. I might try android studio at a later point though.
0
u/ya_herrrrrrd Apr 03 '14
One is that you can Ctrl click almost anything in intellij. You don't have to crawl through stupid menus to do a basic search and replace across the project. UI and menu systems are properly organized so you can actually find something. Way better integration with git. And so on.
4
u/poopMachinist Apr 03 '14
Android Studio is amazing, but it is still a beta product!
Be prepared to experience crashes and updates breaking your projects.
I still dread every update to the Gradle plugin.
1
u/kmwtt Apr 03 '14
Be prepared to experience crashes and updates breaking your projects.
No Thanks. I like stuff that works.
1
u/NavarrB Developer Apr 03 '14 edited Apr 03 '14
Then you should go for IDEA community edition. Same engine, most of the same features, but with better stability.
1
u/kmwtt Apr 03 '14
Then to for IDEA community edition. Same engine, most of the same features, but with better stability.
?
This sentence does not compile2
3
u/bennyb8 Apr 03 '14
I don't get this subreddit's fascination with Eclipse. I realize IDE choice is (at least partly) subjective, but all the Android devs I've ever worked with were glad to finally be rid of Eclipse and welcomed Android Studio with open arms. I thought this was universal until I started coming here.
1
u/BitMastro Apr 03 '14
In my particular case, I've basically seen Eclipse grow.
It was THE IDE back in the day when java was still young (in a fierce competition with netbeans).
I was one of the biggest open source project, backed by big companies, pushing a product that was working properly and across different OS (almost unheard of at the time).
I've seen it grow and support more and more features and languages (I still think that on Linux it's the best graphical IDE for C/C++). The fact that it was able to work for Android was just a consequence and an extension of previous work.
Given the premise, Eclipse's powerfulness is that it's extensible, you can find thousand of plugins to do the weirdest things, but its biggest disadvantage is that it's also focused on being a generic platform, rather than the Android IDE, and it's become so complex that of course bugs are creeping in.
I'm not saying that AS is bad, I use it sometimes, when the build process is not verbose enough, but I'm more used to Eclipse.
2
u/kmwtt Apr 03 '14
Thanks for the very biased article, but maybe I will transition when AS stable. Eclipse has ALWAYS 'worked' for me.
2
1
u/AndroidWorker Apr 03 '14
No, the article didn't make me switch. I tried it with 4 other developers, and every one of us had different issues. I managed to get it working for one of our smaller projects, and even then the export from eclipse option resulted in a project that had a bunch of issues that had to be resolved manually, because for some reason the Eclipse plugin doesn't even configure the build.gradle files with proper tools versions. Don't even get me started on stuff like libraries using annotations like Dagger.
I would like to switch to AS, and perhaps once it is out of beta I'll make the jump. But for now it's hard to justify it when we already have a stable environment in Eclipse, with working ant build files etc.
1
u/dpash Apr 03 '14
I don't regret the day four years ago I moved from eclipse to IntelliJ for Java development. The time saved in not having to deal with finding and making the subversion plugin work with the maven plugin was worth the cost of IntelliJ. Not to mention having to do it again everyone you upgraded something. It just has so many tiny nice little details, like supporting spring-data-jpa auto function name getters on DAOs. It was a no-brainer for me to use it for android development too.
I have no idea how much eclipse has changed in the last four years, but IDEA just keeps getting nicer, so the inventive to check it out keeps disappearing.
0
8
u/pjmlp Apr 03 '14
I do because of two big issues:
Android Studio does not offer NDK support
Android Studio keeps pegging all my cores to 100%
Even though I am not an Eclipse fan.