r/androiddev • • Nov 02 '16

Support Ended for Eclipse Android Developer Tools

http://android-developers.blogspot.com/2016/11/support-ended-for-eclipse-android.html
223 Upvotes

59 comments sorted by

46

u/leggo_tech Nov 02 '16

so thats why they released that android studio youtube video today

42

u/[deleted] Nov 03 '16

I guess you could say, there's been a...

( •_•)

( •_•)>⌐■-■

(⌐■_■)

Total Eclipse.

6

u/drstock Nov 03 '16 edited Nov 06 '16

...of the heart.

4

u/ZShock Nov 03 '16

You sure off it?

1

u/reestablish Nov 16 '16

Not so much. Android Device Monitor, accessible on the Android Studio menubar from Tools / Android / Android Device Monitor, is still Eclipse.

7

u/kirsh300 Nov 03 '16

I honestly liked Eclipse's variable renaming functionality better than AS. With AS the default renaming config tries to rename generated code and string constant values which is quite annoying. With that said, that's the single thing I could think of where I liked Eclipse better..

9

u/BorgDrone Nov 03 '16

I love that builds don't take 10 minutes. I love that there is no stupid 'gradle sync' every time you fart. Or the 'Indexing...' thing.

The greatest thing about Eclipse is that even if you're running a massive builld, you can still use your computer for other stuff while the build is running.

6

u/chkwok DigiCal & AccuBattery Nov 03 '16

Working incremental compilation, click run to deployed within seconds, yeah those were the days.

I don't mind things taking a while, but it is as if Android Studio is doing the whole Gradle sync / build on the UI thread or something, the whole IDE is fucked up until the "background" tasks are done.

Ah well, at least we have a nice xml layout preview now, it's way better than ADT's xml editor that sometimes glitches out due to horrible code from the ADT team.

2

u/Zalenka Nov 03 '16

Now the build times and emulators are plenty fast.

I did work on a large project that would take my mbpr 15" 2m to compile.

2

u/ciny Nov 04 '16

what kind of rig are you using? Our builds (large project with plenty of libraries and proguard running) take about 60s from clean state and, rebuilds are <20s. And I can still use my computer while the builds are running both on my laptop and desktop. And neither of them is a remarkable high-end machine.

However you're not talking about advantages of gradle, especially for complex projects. Currently we're building two versions of our app with different feature sets (and appId, libraries, permissions, graphics, ToS) and for each of these we can build versions pointed at different environments (dev, uat, prod) and have all of those installed side by side. All that in about 150 lines of easy to understand gradle . Our QA loves it (and we do too).

1

u/BorgDrone Nov 04 '16 edited Nov 04 '16

what kind of rig are you using?

MacBook Pro, i5, 16GB, PCIe SSD. This machine SCREAMS with everyhing but Android Studio.

It's not even the Gradle build itself that is particularly slow, it's Android Studio that is the problem. Every time you build it will trigger an index operation in EVERY open AS Window (Right now, that's 7 windows/projects open, but it's not uncommon for me to have 10-15 projects open), which takes forever and makes the entire machine barely usable. Doesn't matter if you trigger the build from AS or from the command line. It also doesn't matter if the projects are related or not, it will re-index everything.

Then there is the gradle-sync bullshit. There should NOT be a need to trigger an external build tool every time I make some small change in my project configuration.

This morning I spend about 5 hours changing 1 line of code. Actually, I changed the line of code yesterday, today I spend the entire morning getting the change propagated through every dependency. AS refuses to pick up changes to snapshot dependencies (why is there no equivalent to --refresh-dependencies in the AS UI ?). Most of that time was spent waiting on AS or trying to get AS to pick up the changed dependency (and then waiting for it to re-index, etc.).

Android Studio is a joke.

2

u/ciny Nov 04 '16

Right now, that's 7 windows/projects open, but it's not uncommon for me to have 10-15 projects open

that's a very specific use case. I mean why on earth would you have 7 android projects open? especially if they're unrelated?

1

u/BorgDrone Nov 04 '16 edited Nov 04 '16

They are related in that projects depend on each other but not in a way that Gradle or AS would know about.

For example, library A depends on Library B, but there is no need to re-index library A if I make a change to B because the dependency in A is a maven dependency. Project A only needs to update and sync/index if I push B to the maven repo.

Similarly, if project A depends on lib B and C, but B and C are unrelated otherwise, a change in lib B should not trigger a re-index of lib C.

Also, these aren't necessarily Android projects. We have a lot of re-usable libraries that are just plain Java and are also used in our J2SE and J2EE projects. So for example we have some-library then on top of that some-library-android which add android-specific stuff, so that's two library projects open. Then there' s a higher-level library that depends on the some-library-android, some-other-library-android, yet-another-library-android projects. Then there is library-sample-app which we distribute to our customers, which depends on higher-level-library-android, another-high-level-library-android (which has sub and sub-sub dependencies), etc. Then there's a 'showcase' app we have in the store that depends on the same. Demonstration apps we built for specific sales-partners and potential customers. etc. Some of our code is also open-sourced (LGPL), so we have to split it into different libraries to keep the OSS stuff away from the closed-source proprietary stuff. We also sell different priced tiers of our stuff, so some functionality is in separate libraries for that reason.

So when I add a feature or make changes to some-library, that sometimes means I have to make changes to a whole bunch of stuff that depends on it. Especially if it's an API or architectural change. I'm in the middle of a major refactoring so it's is particularly horrible right now.

1

u/ciny Nov 04 '16

For example, library A depends on Library B, but there is no need to re-index library A if I make a change to B because the dependency in A is a maven dependency. Project A only needs to update and sync/index if I push B to the maven repo. Similarly, if project A depends on lib B and C, but B and C are unrelated otherwise, a change in lib B should not trigger a re-index of lib C.

This sounds very off. I rarely work on multiple projects but I never saw this behavior. But one way you could cut down on open projects could be using git submodules - you'd have your main project, lib B & C as one IDEA project but they would still live in their own repositories. but that increases version control complexity and I honestly haven't tried it so I haven o idea how it would work out in practice.

Then there's a 'showcase' app we have in the store that depends on the same. Demonstration apps we built for specific sales-partners and potential customers. etc. Some of our code is also open-sourced (LGPL), so we have to split it into different libraries to keep the OSS stuff away from the closed-source proprietary stuff. We also sell different priced tiers of our stuff, so some functionality is in separate libraries for that reason.

This seriously sounds like a job for gradle and build variants. The project I'm working on only scratches the surface (two versions of app with different featuresets + backend management for easier testing). But one of our other apps is exactly like what you're describing - various demo versions, version for large retailers, version for small business, version with special hardware support, special skinned versions for various clients - all living in the same codebase and the devs haven't gone insane yet so I think it can work (though refactoring to support this model would be a bitch).

I'm in the middle of a major refactoring so it's is particularly horrible right now.

good luck and take a vacation afterwards ;)

1

u/BorgDrone Nov 04 '16

But one way you could cut down on open projects could be using git submodules

I don't want a dependency on source code, I need a dependency on a maven artefact. I can't deliver a library where I don't know exactly what sub-libraries were included. It needs to depend on explicit, immutable versions of it's sub-libraries.

you'd have your main project

There is no 'main project' as such. There are several products that each use a subset of our libraries in different combinations, depending on the use-case.

This seriously sounds like a job for gradle and build variants[1]

No, this doesn't work with build variants as they are completely separate projects that do not share any code.

For example, our 'showcase' app is exactly that, a showcase of what our library can do. Our sample apps just contain the very bare minimum to get a customer started on integrating our stuff with their own apps (think 'hello world' level minimum). The LGPL stuff lives in it's own (public) repo, etc.

We had a few apps that started out as build variants of the same codebase but over time they diverged so much that they got moved to their own repo's.

2

u/ciny Nov 04 '16

fair enough, then your use case is completely different from anything I work with. Kudos for staying sane in such complex situation.

1

u/BorgDrone Nov 04 '16

Who said anything about staying sane :)

AS is really driving me nuts, it probably works fine if you're just making some simple apps but it's not in the same league as Eclipse.

AS is giving me problems with 10 projects open while I regularly used Eclipse with 100-150 projects open without problems.

2

u/under_the_radar11 Nov 06 '16

I agree with this! I am always terrified of what will happen when I refactor > rename

7

u/HansVader Nov 03 '16

Android Studio does the job better anyways.

6

u/lyraf Nov 03 '16

Press F to Pay Respects.

11

u/Tycon712 Twitter/SO: @w3bshark Nov 02 '16

RIP

1

u/[deleted] Nov 03 '16 edited Nov 03 '16

Heh...I'm still using Eclipse but in in a weird scenario where ADT is only used to generate R.java so the code compiles in Eclipse. But I use Gradle for the actual APK build, debug and release, exactly as you would if using AS, to benefit from its modernity and advantages.

1

u/TheMagicSkolBus Nov 03 '16

Only reason I hadn't switched to Android Studio is because it didn't have CVS support at the time. Is that available now?

5

u/s73v3r Nov 03 '16

Why the hell are you using CVS? And even if you are, just run a standalone client. I do that with git, cause most IDE integrations are terrible.

1

u/bbqburner Nov 04 '16

The git integration on IDEA/AS is actually pretty good though.

2

u/mrdreka Nov 03 '16

Yes, I don't know if it have all the feature you use for it, since I use git, but it does have that feature.

-37

u/slugshead Nov 02 '16

Urgh, finally being forced to move over... Wonder if they'll start rejecting keystores generated from eclipse?

60

u/Numan1617 Nov 02 '16

A keystore is a technology entirely separate from the IDE so they'd have no way to reject a keystore specific to Eclipse. I can't think of a reason they'd even consider that move either

35

u/QuestionsEverythang Nov 03 '16

For the past year, it seems like I'm always hearing the silliest reasons not to switch over to AS. That keystore thing is by far the dumbest reason.

5

u/Bagellord Nov 02 '16

Yup - I have keystores that I made using Eclipse still in use.

8

u/[deleted] Nov 03 '16

I mean anyone who is working on an app released 3+ years ago probably does.

22

u/MachaHack Nov 02 '16

Google are not Apple (yet). They're not going to help you develop on Eclipse, but they're not going to go out of their way to force you to stop either.

13

u/shrewduser Nov 02 '16

you still use eclipse? can i ask why?

8

u/cqm Nov 02 '16

they probably just never got around to it, android studio 1.0 isn't even that old, and there are still more than enough horror stories regarding gradle integration

I could see it happening

7

u/NewToMech Nov 03 '16

A month and change away from 2 years old. I can see it happening, but it's age and general procrastination aren't really good reasons at this point, it's more like a conscious decision not to use Android Studio

1

u/s73v3r Nov 03 '16

I can't.

2

u/Terazilla Nov 02 '16

I still do most of the time. AS and particularly Gradle are excruciatingly slow. And I've worked with ArcGIS.

3

u/shantil3 Nov 03 '16

There's tons of great articles like this showing the very tiny changes you can make to drastically improve your build speed. Also make sure you're only running the tasks that you need.

3

u/DreamHouseJohn Nov 03 '16

Huh. What sort of hardware are you working with? AS is as fast as I've seen an IDE for me. i5-6500 here.

1

u/slugshead Nov 03 '16

It's the IDE I've always used, even before I started Android work so I was just familiar with it.

Also, I got used to the structure of apps within Eclipse and the first time I saw the structure of them within Android Studio, I couldn't get my head around it. So I just carried on using Eclipse.

1

u/WestonP Nov 03 '16

AS wasn't mature enough to be a viable replacement for a lot of people until around version 2.0, which was fairly recent. Not everyone has made the transition yet. I moved the last of my company's stuff over just a couple months ago. And even still, although AS is now clearly better overall, it still does leave a few things to be desired, compared to Eclipse.

It's easy to be on the bleeding edge for simple personal projects, and sometimes for new projects in general, but when you have an existing app with a large number of active users, you generally aren't eager to replace something that works as it is, with an unknown.

3

u/kaze0 Nov 02 '16

This won't happen. Even if it was technically possible, it would destroy every app that had ever been built.woth eclipse

1

u/paphonb Nov 03 '16

How is it possible?

1

u/kaze0 Nov 03 '16

It probably isn't possible

-20

u/cptmauli Nov 03 '16

It only shows that, for whatever reason, Google is just not able (or willing?) to build decent Eclipse plugins. Sad.

2

u/s73v3r Nov 03 '16

They only have so many man hours to work on dev tools. Time spent on Eclipse tools is time not spent elsewhere. They've decided that most people don't want to use Eclipse, so they're spending that time where it's best used.

0

u/[deleted] Nov 03 '16

[deleted]

2

u/CrazyJazzFan Nov 03 '16

Me....

but for some embedded dev projects.

1

u/[deleted] Nov 03 '16

A friend of mine still works on it because of RTC...

-8

u/BorgDrone Nov 03 '16

I'm still using Eclipse for a lot of stuff, unfortunately Android development is not one of them. We're stuck with the abomination that is Android.... (Indexing...) ... Studio .... (Gradle: Sync..)...

1

u/Zhuinden Nov 03 '16

Auto-complete and navigation in your project is pretty abysmal in comparison in Eclipse though.

0

u/[deleted] Nov 03 '16

[deleted]

15

u/Zhuinden Nov 03 '16

I've heard that Android Studio becomes much faster if you whitelist the folders of the project in Windows Defender

2

u/FelicianoX Nov 03 '16

Halved my build speeds on an HDD (also whitelisted .gradle/)

Whitelisting helps a lot for gradle builds. Not sure if it helps AS itself with other stuff

0

u/[deleted] Nov 03 '16

[deleted]

3

u/Zhuinden Nov 03 '16

Diesn't LibGDX handle that and give you the right Gradle config for it?

1

u/Whiskee Nov 05 '16

Ah, sure, LibGDX works everywhere. I'm talking about having personal libraries for all games, like an evolving engine built on top of LibGDX: doing heavy refactoring is a nightmare, because you have to open every single game project one by one... while Eclipse puts the whole repository in front of you (and builds in real time).