r/androiddev • u/ancatrusca • Dec 15 '14
Google strongly recommends Android developers to switch from Eclipse to Android Studio
http://www.infoq.com/news/2014/12/android-studio-1?utm_source=reddit&utm_medium=link&utm_campaign=news_android_vs_eclipse19
u/bonesingyre Dec 15 '14
Heh, I'd love to switch, but my boss won't let us until AS has TFS support. I'm stuck in limbo until it comes out.
16
u/jonba2 Dec 15 '14
I'm not familiar with TFS, but there is an IntelliJ/AS plugin for it!
I don't think it's installed by default, but if you go to
Preferences -> Pluginsand clickInstall JetBrains plugin...you should see it listed as "TFS Integration".7
11
u/kaze0 Dec 15 '14
That's just bizarre. Just use one of the other million TFS clients... but I'm pretty sure there's a plugin anyway. Also, I feel so sorry for you
3
u/bonesingyre Dec 15 '14
I don't think he wants to use a client that isn't integrated with the IDE. We use VS for our main project and it has a nice integration built in.
Its bizarre as hell though. I'm used to git and command line, and whlie a visual plugin is nice, it shouldn't be a requirement.
5
11
Dec 15 '14
OK, I’ll bite - what is TFS? I can’t keep up with all the TLAs
10
u/ragingRobot Dec 15 '14
TFS is Microsoft's version control system
6
u/AugmentedFourth Dec 16 '14
More accurately, its MS's application life cycle management platform. As of the latest version, GIT integration is available out of the box. It still includes TFS version control as an option but the choice is up to you and doesn't limit the other tooling aspects at all. It's quite nice actually.
5
u/Rockytriton Dec 15 '14
I thought that was visual source safe, but I haven't used Microsoft in a while
5
u/tidderkrow Dec 16 '14
but I haven't used Microsoft in a while
Popular theme on this subreddit
3
u/Rockytriton Dec 16 '14
Ha yeah, actually I love visual studio, I have nothing against Microsoft, I've just spent 90% of my time working in Java the past 10 years
2
u/ciny Dec 16 '14
actually I love visual studio
what's not to love? Visual studio is second to none :)
2
0
Dec 15 '14
[deleted]
4
u/pjmlp Dec 15 '14
It is quite powerful, I love its gated checked-in in large enterprise projects.
22
u/lelarentaka Dec 15 '14
I think this is the first time I've seen "love" and "large enterprise project" used in the same sentence.
4
u/pjmlp Dec 16 '14
It allowed us to forbid the offshoring team to commit code that wouldn't even compile or break all unit tests! That is lots of love.
1
Dec 16 '14
You can do that with every major version control system, although admittedly it takes a fair amount of configuration. If you are ever interested in hit, look at the githooks documentation. My personal preference is to use something like Jenkins, though, which complains after the fact but if much easier to configure.
1
u/pjmlp Dec 16 '14
Doing this before the changes get through is what matters.
I will look into githooks, however I am yet to be on an enterprise project with Git.
1
Dec 16 '14
Doing this before the changes get through is what matters.
I've been through that before, it stinks. We used to block commits pending a build (you can do that with SVN and I think even CVS as well, though I'm not as familiar with either). We moved to Jenkins because it sends a nice "you screwed up" email to everyone on the team. After a few weeks, the people who kept breaking the build were shamed into fixing their behavior. Working with a geographically-separate team really sucks unless you're careful; my condolences!
→ More replies (0)1
u/s73v3r Dec 16 '14
You can do that with pretty much every modern VCS.
1
u/pjmlp Dec 16 '14
TFS does if before the commit without any extra effort, besides turning a checkbox.
Every other VCS requires creating an infrastructure with pre-commit hooks, which most clients are not willing to pay for.
2
u/s73v3r Dec 17 '14
It's part of setting up a project. You don't tell client that's what you're doing; you just go ahead and do it.
Do you also ask your clients whether you should make a variable public or private?
→ More replies (0)6
1
-3
5
u/meekrabR6R Dec 16 '14
Your job sounds like it sucks. :-/
9
u/bonesingyre Dec 16 '14
Haha, it does sound like it sucks but its actually really awesome. There are just certain quirks I have to deal with, but my boss is open to change.
Simple Examples:
They inlined all css before I joined up, now we use less.
I brought a sense of style, incorporated bootstrap for better design (They used ids for every html element, I showed them better structuring with classes)
I recommended Angular and we used it in a project, boss loved it
I've streamlined a few of their processes and I have full freedom to do almost what ever.
I think my boss is just scared of version control, hes never really had to use it since his project was just him alone. He checked in stuff and that was kind of it lol.
2
u/meekrabR6R Dec 16 '14
It's kind of terrifying that he is scared of version control, but it's good that he at least seems open to change and that he listens to your suggestions.
1
u/eddbc Dec 16 '14 edited Dec 22 '14
Going through similar stuff with my boss now. He is finally making the switch from editing code over ftp on the development server to using git. Luckily I'm doing app stuff whilst he does the web stuff, so I don't have to deal with that shit directly
2
u/MKevin3 Dec 15 '14
I use GIT while in AS and git tf to check things into TFS every so often. If you use git tf checkin --mentions and you use #1648 in your comments where 1648 is the TFS task / ticket then it will auto associate the check in to that item.
I do this because I am on a Mac so I don't have anything native for TFS there but I can still use GIT with AS and TFS as more or less my remote GIT server. Git TF also works on PCs, not Mac specific.
I do all my normal stuff in AS using GIT and hit the terminal window from time to time to do a gtfs (I alias this to git tf checkin --mentions). So far it has worked nicely.
1
1
u/s73v3r Dec 16 '14
I would have to ask why the fuck anyone is using TFS for Android. Or outside of Visual Studio, for that matter.
16
u/aldo_reset Dec 15 '14
I'm a bit irritated that Android Studio was declared 1.0 before it has reached full parity with ADT. The integration of DDMS and other tools is completely seamless with ADT but nonexistent in Android Studio.
And that Memory Monitor... Anyone find any useful purpose to it? It displays a nice realtime graph of the memory but if you need to find out what caused a spike, well... you can't, you'll have to launch a separate tool for that, therefore leaving all the advantages of having realtime reports.
Also, I really hope Google changes their mind and continues to support both ADT and Android Studio because Eclipse is still doing a few things better than IDEA.
2
u/cypressious Dec 16 '14
To open DDMS click the green Android icon in the toolbar. It opens a crippled version of Eclipse with all the tools. Not saying it's perfect, but it's there.
1
u/konk3r Dec 15 '14
I haven't gotten the memory monitor to actually work for me. We currently have a view that processes a large amount of images so OOM issues are a constant concern, and the built in memory monitor gives us a flat line. We actually have to open up the Android Device Monitor to see the spikes in real time.
That's a minor concern though, I realize that it doesn't have perfect parity but I think it will get there soon, and the features that it does have parity on work better. I think they're making the right choice here.
0
Dec 15 '14
[deleted]
6
u/aldo_reset Dec 15 '14
If it had all the same features as eclipse it would be eclipse
Uh? Feature parity doesn't mean the two IDE's are identical.
I'd like to see a clean integration of the entire Android tool chain in Android Studio done as well as it is in ADT. Surely that doesn't suddenly turn Android Studio into Eclipse.
0
7
u/Drsmall Dec 15 '14
Does Android Studio support C++? I use Cocos2d-X and c++ for game dev with eclipse. Will Android Studio check for C++ syntax?
4
u/Rockytriton Dec 15 '14
I'm in the same boat, no it doesn't support NDK
3
1
u/DoctorsHateHim Dec 16 '14
The support will definitely come, question is when, since we are talking about Google here. The same guys that know of a bug and don't fix it for 2 more years.
6
u/lechatsportif Dec 15 '14
screw them ill use it as an editor. gradle builds mean editor independence.
7
u/tidderkrow Dec 16 '14
I'm more happy android has a good official build system now vs a new IDE.
...now, if we could just get better documentation for it...
26
u/justec1 Dec 15 '14
A group of us are forking ADT into a new project called Andmore that is based at the Eclipse Foundation. The project passed its trademark review last week and this week we hope to get final approval. Work is currently ongoing at Github--you are welcome to fork and submit pull requests.
For those who want to continue using Eclipse+ADT, there will be an update site soon that's hosted at eclipse.org. There will be new tools support, including the former MOTODEV tools, Maven, and Gradle (hopefully).
1
Dec 16 '14
How about ant support? Will you be keeping that? That's my biggest hurdle right now
1
u/justec1 Dec 16 '14
Ant support will stay. The idea is to provide proper maven support and then gradle.
If there's interest, I can get the others together and we could do an AMA.
1
u/potyl Dec 15 '14
Is that project able to pickup android apps that are now setup only through gradle?
1
u/lechatsportif Dec 15 '14
it should be able to do it just fine theoeretically using eithe gradle eclipse plugin or the smarter springsource gradle and groovy suite.
1
u/aldo_reset Dec 15 '14
That's awesome, thanks for doing that!
I assume that Gradle integration would be high on the TODO list?
1
u/justec1 Dec 15 '14
There are several choices for Gradle integration. One from an existing project and another that might come from Gradleware itself. That's part of the TBDs.
1
u/justec1 Dec 16 '14
Gradle is definitely a priority. Not first priority, but a high one.
We need to get the packages built and served from Eclipse.org first and foremost as we don't know when Google is turning off their update site. If you don't already have it somewhere, go download the ADT zip file now in case Google takes the site offline.
0
Dec 15 '14
[deleted]
13
u/justec1 Dec 15 '14
As others on this thread have mentioned, there are plenty of developers for whom Android Studio is not a good solution. If it works for you, that's great. Those of us who work in Eclipse already, there's no desire to switch to another IDE when all Eclipse needs is some attention paid to the Android plugins to make them suck less.
3
u/croodies Dec 16 '14
I love Eclipse too, but had to move to Android Studio and am still learning (has a crappy UI) because Gradle support is great there..
Kudos to whoever is trying to revive Eclipse + ADT. I'll use that as long as you've the Gradle Support.
I don't care much for drag and drop widgets..
-6
u/lechatsportif Dec 15 '14
this can only be a troll. if you dont understand that editors are different then you dont get technology. its like asking why you need android if ios exists.
0
Dec 15 '14
[deleted]
3
2
u/cfmdobbie Dec 16 '14
Just because one company decided not to do a thing, it does not necessarily follow that the thing is not worth doing.
0
10
Dec 15 '14
"Android Studio has taken the path of Chrome with 4 development channels - Stable, Beta, Dev, and Canary – developers having the option to see the new features in advance before they become generally available."
Now they just need to do the same thing for Nexus phones. On top of the advantages for devs, I know regular folk with Nexus phones that would be more happy behind the curve.
3
u/Thesgnl Dec 15 '14
Would love to if my AS actually downloaded the gradle dependencies and not timed out every time, can't do shit without them
2
u/WorkHappens Dec 16 '14
Used to have that problem due to some stupid work firewall settings. Had to go offline while not changing gradle dependencies and switch network when downloads were needed.
1
Dec 16 '14
Right.
I'm behind some proxy at my company and even if I put in my proxy info in the gradle config file I still can't download the required files. It seems silly that this is even require for compiling. I understand there's an offline mode but from what I read, you need to at least been online once and downloaded the required files before offline mode can work.
3
u/MaihnYOU Slowly ascending above Noobdom Dec 15 '14
Does it support offline use now? I live in a part of the world with not so great internet, and offline use is why i still use eclipse
3
u/cobarx Dec 16 '14
Yes, you can set Gradle for offline mode and download your Maven dependencies in advance of going off the grid.
7
u/ionsquare Dec 15 '14
I'm trying to switch but I really miss the split pane functionality from eclipse. You could just drag a tab to the side and have that file open beside the others.
You can make it work in Android Studio too, but you have to right click a file and say split vertically and then close the original file. You also can't drag tabs across to the other side to join the other group. If you have a tab on the left and want to move it to the right, you need to close the left file, click a tab on the right-side pane to give that pane focus, then re-open the file.
I really wish they did a better job with that. I have a 4k monitor and it makes it much less convenient to take advantage of that space.
3
u/tdieckman Pixel 5, Blik Calendar Widget Dec 15 '14
I've been dragging files between the split panes just fine.
1
u/HaMMeReD Dec 16 '14
I think he means eclipse auto splits. Splitting is fine in intellij I use it all the time.
1
u/tdieckman Pixel 5, Blik Calendar Widget Dec 16 '14
He said he can't drag files from one pane to the other. I've been doing that.
1
u/HaMMeReD Dec 16 '14
The difference is as follows, with no panes open, completely empty editor.
Eclipse (as I remember)
Click file1
Drag file2 to right or bottom of screen to do spllit (it does a mock while you drag around)
Intellij
Click File 1
Click File 2
Right Click header tab and say "Split Horizontal or Split Vertical"
Both After you have your split pane, in both you can drag and drop in the pane directly.
It's basically one less step in eclipse, but really, not a big deal. Intellij is just heaps better in so many other ways.
0
u/ionsquare Dec 15 '14
Really? Which version of android studio do you have and did you have to install any plugins to get that to work?
1
u/tdieckman Pixel 5, Blik Calendar Widget Dec 15 '14
I just recently converted from eclipse after 1.0 of AS was available. I installed one update to it while I was still converting my projects. I'm not at my computer to verify, but try dragging a tab from one pane to the "body" of the other pane.
1
u/eldememphis Dec 16 '14
It is working without any plugin since at least 0.8.6, but you have to drag them very carefully
5
u/rogue780 Dec 15 '14
the great thing about android studio is it's based on intellij which means you can keymap just about everything. For split-paning, I mapped it to cmd+shift+up and it's super easy
7
u/lechatsportif Dec 15 '14
the great thing about AS is everybody says its great regardless!
2
u/rogue780 Dec 15 '14
I use intellij IDEs almost exclusively (still use xcode) and I've really come to love them. Much easier to use than eclipse imo
3
u/potyl Dec 15 '14
I managed to mimic the split pane but it really seems like a hack in Android Studio. Sometimes the wrong pane will have focus and i will be writting in the wrong pane. I am wondering how can such a bug have slipped through in the prod build.
4
u/bowersbros Dec 15 '14
report it as a bug then
1
u/potyl Dec 15 '14
Sure, where is their bug tracker? Because searching for "Android Studio bug tracker" is not showing anything that looks like Studio's bug tracker.
1
u/aldo_reset Dec 15 '14
You can make it work in Android Studio too, but you have to right click a file and say split vertically and then close the original file.
No, you can automate that: just map a key to "Open in opposite group".
I mapped "Alt-Cmd-UpArrow" to it and I use it all the time to send files left and right. Super useful.
Other than that, I agree that Eclipse's window manager is much more powerful than IDEA's.
1
Dec 16 '14
you can move tabs to the other by dragging them onto the edit area rather than the tabbar.
1
u/zirzo Dec 16 '14
Its based on intellij. There should be a keyboard shortcut for this. If not then you should be able to create one.
1
u/s73v3r Dec 16 '14
I drag tabs between splits all the time.
1
u/ionsquare Dec 16 '14
Well I stand corrected. I just tried it and I can indeed move tabs between panes. It's pretty finicky though, the tab doesn't detach unless you drag it into the centre area of the other pane first.
I had been trying to just drag the tab horizontally to the other set of tabs and that doesn't work. As soon as I bring the mouse down to the inner area of the pane, then the tab detaches and I can position it on the other side.
7
u/cardevitoraphicticia Dec 15 '14
I feel like people spend way too much time thinking about their IDE...
13
u/tidderkrow Dec 16 '14
They should be spending that time arguing tabs vs spaces
4
Dec 16 '14
Spaces? What are they barbarians!? God made the tab key for a reason, and that is properly spaced code.
4
u/DoctorsHateHim Dec 16 '14 edited Dec 16 '14
It saves 50% of the work by making you press a key once instead of another key twice.
Where the fuck anywhere else in life would you just say no to a 100% efficiency increase?!
3
u/shadowdude777 Dec 16 '14
I've fallen into that trap so many times. I really am happy I switched to exclusively using JetBrains IDEs though. My workflow is consistent across all languages (yes, yes, I know, inb4 "your workflow is consistent across all languages with vim, too"), they have all kinds of cool tools for every language, and things like pretty syntax highlighting, the extensive code-inspections, the evaluator + debugger, etc are things that I feel I can't live without now.
6
u/DoctorsHateHim Dec 16 '14
I've fallen into that trap so many times.
Goes on to argue why his IDE is better than others
-1
u/shadowdude777 Dec 16 '14
I'm saying that this is one situation where I feel the time invested in switching my work environment paid off. If you read my comment that would be rather clear. I never said that the time I invested in setting up the perfect gestural controls on my Magic Trackpad was worth it.
1
Dec 16 '14
You described three features that eclipse has. The formatting bring prettier out of the box is fairly accurate, but I don't see any difference in features between the two. Personally, I like eclipses evaluator functionality better, as a team that you can leave up, but that's six on the one hand...
1
u/xkcd_transcriber Dec 16 '14
Title: Efficiency
Title-text: I need an extension for my research project because I spent all month trying to figure out whether learning Dvorak would help me type it faster.
Stats: This comic has been referenced 38 times, representing 0.0863% of referenced xkcds.
xkcd.com | xkcd sub | Problems/Bugs? | Statistics | Stop Replying | Delete
1
u/ciny Dec 16 '14
With all the time I saved using my IDE I have much more time to think about it! :)
0
2
u/barodapride Dec 16 '14
Can't switch...too fast with Eclipse to use anything else.
4
u/WorkHappens Dec 16 '14
Honestly, that shouldn't be a reason. Being affraid to switch IDEs due to a loss in productivity can be deadly for a developer/programmer. Yes maybe you are lucky enough to never need to use another IDE. Honestly I doubt that will be the case, the better and faster you can adapt to a new IDE, the better and faster you can adapt to a new job, and a new technology.
Stagnation in the world of technology is a dangerous game to play.
2
u/QuestionsEverythang Dec 15 '14
They've been recommending it for the past year...especially when all the samples use Gradle and new APIs such as for Android Wear or Auto all say "Use Android Studio".
2
u/tidderkrow Dec 15 '14
I'm not reading any strong recommendation sources in the article other than the webpage for android studio itself.
5
u/Lazyfaith Dec 15 '14
It's a dumb news title, the article is about Android Studio turning 1.0 but the title is just "Breaking news: Company strongly recommends you use their product".
8
u/pjmlp Dec 15 '14
Android documentation explicitly states there won't be any more updates for ADT.
http://developer.android.com/tools/help/adt.html
Note: If you have been using Eclipse with ADT, be aware that Android Studio is now the official IDE for Android, so you should migrate to Android Studio to receive all the latest IDE updates. For help moving projects, see Migrating to Android Studio.
2
5
u/NullVar Dec 15 '14
What else do you want other than the official recommendation from Google?
1
u/tidderkrow Dec 16 '14
A decent article from the OP that had official statements / interviews from Google executives & Google developers tools team members.
2
u/NullVar Dec 16 '14
So you want it in 1000 words rather than a few sentences.... what difference would that make? This is really simple. ADT is not being updated anymore, switch.
-1
u/tidderkrow Dec 16 '14
Why did you ask me what I wanted, if you just wanted to belittle my answer? Because troll?
0
Dec 15 '14
[deleted]
0
u/QuestionsEverythang Dec 15 '14
Well, ask yourself this. Why would you use what will soon be an outdated IDE for Android development instead of Android Studio?
2
u/WestonP Dec 15 '14
Eclipse is already outdated and has been for a while; it just happened to be the only viable option for us on Android until recently. But, it also works well enough and is well known.
The reality is that only hobbyists and students would be well advised to work on the bleeding edge. Those of us doing this professionally need some time to vet this stuff, figure out how to wrangle our NDK code bases to work with it reliably, and make sure it's a good fit for our real-world projects. After all, when you're getting paid to do this stuff, you probably have a whole list of higher-priority work items that are easily more important and more immediate.
In this industry especially, you do have to adapt to a lot of changes, but a 1.0 release still doesn't mean it's time to just blindly migrate everything over because Google says to. It means it's time to consider that as an option and then maybe do it in the future.
1
Dec 15 '14 edited Dec 30 '15
What go him at also to after an that go. Day use my me when two an these.
Have the by some of at. Up by of when when what that would they two. Her him get her and you a from after. First my well also go when an which my time come use.
1
1
1
u/dmeador Dec 15 '14
I have developed java applications for years in eclipse, and just a week ago started to really get into mobile dev. The day I went from research to going to set up Eclipse i heard about AS 1.0 coming out. Good timing for me as I want to go with what will be getting support in the future
1
Dec 16 '14
I am half way down finishing Big Nerd Ranch which uses Eclipse as a tool of choice. Would I face problems if I use Android Studio for it?
1
1
u/DoctorDbx Dec 16 '14
I made the change... ported one mid sized app across, started a couple of new apps.
Wasn't that big a deal really... took a couple of days to get back up to speed.
Java is still Java.
1
1
1
u/AutobotSux Dec 16 '14
I use neither. The only thing matter to me is Android SDK. :)
1
u/WorkHappens Dec 16 '14
Up to preference. If the additional tools official IDEs bring to the table aren't enough to make up for losing your favourite IDE (or editor), don't.
0
u/albertowtf Dec 16 '14
I cant find the reasoning for creating AS in the article or in AS page. Can somebody explain it to me?
do they wanted to do something that was not possible with ADT?
-3
u/codesoup Dec 16 '14
XML files need UNICODE support before I can switch.
1
Dec 16 '14
They already do.
-1
u/codesoup Dec 16 '14
Can you prove it, or provide any evidence that this has changed? It didn't have that feature a month or so ago.
1
Dec 16 '14
For example: http://envyandroid.com/archives/tag/strings-xml
and http://stackoverflow.com/questions/8536375/android-replace-with-ellipsis-character
and http://developer.android.com/training/basics/supporting-devices/languages.html
Have examples of unicode in the xml files.
0
u/codesoup Dec 16 '14
Thanks for trying, but I don't think we are on the same page. Pretty sure the behavior I saw is still there and still broken.
In Eclipse, I can right-click in the Code Editor and go to Properties | XML | XML files | Encoding and set the encoding to UTF-8, but there is no such option available in Android Studio.
In Android Studio, when opening an xml file, the status bar locks the encoding drop down. Hovering over it says "File encoding is disabled. Encoding is hard-coded in the text." But my XMLs have the encoding set correctly:
<?xml version="1.0" encoding="utf-8"?>
But it still doesn't work, and when compiled, my application mangles the display of my UNICODE characters. Perhaps there's some way to fix, but I spent a while trying to find a solution and failed.
1
Dec 17 '14
I've got no idea. It works fine for us, and we have an app translated into dozens of languages.
1
0
Dec 16 '14
[deleted]
1
u/WorkHappens Dec 16 '14
It's a breeze for a lone developer. I changed at home, and for a project in which I was the sole developer. No headaches at all. On a team project, shit hits the fan most of the time.
0
Dec 15 '14
[deleted]
6
4
u/kneeonball Dec 15 '14
TheNewBoston is /r/programming has a bad reputation I think. I don't remember why, but I'd use Android Studio and the Udacity course made by Google to start out if you don't have a lot of experience.
2
u/mflood Dec 15 '14
They're just very out of date is all. The videos were all uploaded in 2011, and, to my knowledge, have not been updated.
1
u/qiakgue Dec 16 '14
His YouTube channel has an ongoing series of Android tutorials using Android Studio that's about 5-10 episodes in.
1
u/covercash2 Dec 15 '14
His Java tutorials are solid. He does the ELI5 thing great. That said, I haven't followed his other tutorials.
2
u/QuestionsEverythang Dec 15 '14
TheNewBoston is very outdated. Might want to find something else to learn from, like BigNerdRanch. Although their book also uses Eclipse, it's really not that hard to set up a new AS project. Most people with complaints about AS are mainly about exporting Eclipse projects to AS, not starting brand new projects.
20
u/Terazilla Dec 15 '14
We have something like 300 Android projects all set up and working with Eclipse. I am dreading this mess so much.