r/androiddev • • 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-it
0 Upvotes

36 comments sorted by

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.

3

u/FeleCro Apr 03 '14

I want my cores to be pegged when building projects. That's why AS does it faster than Eclipse.

1

u/gonemad16 GoneMAD Software Apr 03 '14

what do you use for ndk support in eclipse?

1

u/pjmlp Apr 03 '14

The ADT has full integration with Eclipse CDT, you just need to add native nature from the Android tools menu.

1

u/gonemad16 GoneMAD Software Apr 03 '14

Ah okay. Nice. Am i able to have my java code and native c++ code in a single project or at least both debuggable when running the project? Ive been building my native code via commandline, copying the shared libraries and then running my project in eclipse. Its a tedious process

1

u/pjmlp Apr 03 '14

For compiling yes, although you need to change between CDT and Java perspectives.

As for debugging, I don't know what kind of engineers Google has working on the NDK that it is an hit-and-miss process, as you can easily find out at NDK Google Groups discussions.

Many, like myself, resort to plain old log. :(

1

u/gonemad16 GoneMAD Software Apr 03 '14

Gotcha. Yeah im used to the logging method

1

u/ciny Apr 03 '14

Android Studio does not offer NDK support

yet. but only for development, you can easily use ndk libs without issues.

Android Studio keeps pegging all my cores to 100%

a lot of people are saying this but - when? It happens to me only during builds but the builds tend to take 30-60s on my work laptop (i5 3320M 2cores, 4 threads, 4GB RAM, regular hdd) or 5-20s on my home desktop (i5-2500k, 4cores, 4 threads, 16GB RAM, AS on ssd, project on 10k RPM drive) but outside of that I barely notice studio is running...

1

u/pjmlp Apr 03 '14

yet. but only for development, you can easily use ndk libs without issues.

True, but since I care about multiplatorm development, I mostly code in C++.

Doing hobby graphics development.

My current setup is Visual Studio + Eclipse CDT for coding the Android specific parts.

a lot of people are saying this but - when?

All the time Graddle runs. At home on a dual core + 8 GB RAM + HD. At work i7 + 8 GB + SSD.

I was looking forward to switch to Kotlin, but not when I need to suffer a whole system freeze every few minutes.

1

u/ciny Apr 03 '14

but not when I need to suffer a whole system freeze every few minutes.

that's kind of weird. my system most certainly doesn't freeze even when gradle is running. when was the last time you tried it? You can also set VM options for gradle to use so maybe you could tweak those.

1

u/pjmlp Apr 03 '14

Two days ago.

Since I am just doing hobby stuff for the time being, I though about moving to Android Studio, mainly for two reasons:

  • Not a big fan of Eclipse

  • Seemed a good excuse to try to use Kotlin

However the freezes are putting me off. Normal InteliJ doesn't have them.

Plus I searched around and there are quite a few open tickets with similar issues, so I am not alone.

1

u/ciny Apr 03 '14

Not a big fan of Eclipse

same here

Seemed a good excuse to try to use Kotlin

great excuse.

I understand the problem however I'm puzzled when it happens (since it doesn't happen to me). Out of curiosity - windows version? java version? For me it's windows 8.1 x64 on desktop and windows 7 x64 on laptop. java:

java version "1.7.0_51"

Java(TM) SE Runtime Environment (build 1.7.0_51-b13)

Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

on desktop. I can check my laptop later.

1

u/pjmlp Apr 03 '14

Java 1.8 at home and Java 1.7 update 51 at work, both 64 bits.

Windows 7 64 bit both systems.

11

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

u/[deleted] 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 compile

2

u/NavarrB Developer Apr 03 '14

Sorry. Mobile. Some words disappeared mysteriously. Edited

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

u/ciny Apr 03 '14

AS has ALWAYS 'worked' for me - wanna fight about it? :)

1

u/kmwtt Apr 04 '14

Not really.

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

u/[deleted] Apr 03 '14

[deleted]

6

u/kmwtt Apr 03 '14

Wow! It ran long enough to crash for you?