725 points · by ingve · 11y ago · 227 comments
I have been super impressed with PyCharm, and have heard great things about some of their other IDEs. Google picked the right partner to build on/with for this.
If they have sufficiently smoothed over some of the annoying workflow/build snags I was running into in the old Eclipse+ADT days, this could be a whole new ballgame for us who don't play with Java or Android for a living.
Gradle: compile 'org.sakaiproject.edu-services.course-management:course-management:10.2'
It's worth the transition.
If you like Gradle fine, but this is a really stupid thing to make that choice over.
Or maybe it's worth formatting a Maven syntax sample in your comment just like an IDE would:
<dependency>
<groupId>org.sakaiproject.edu-services.course-management</groupId>
<artifactId>course-management</artifactId>
<version>10.2</version>
</dependency>The only criticism I have of jetbrains is that their support isn't the best. My experience has been that you can get faster and better answers by scouring the 'net than by using their support system or forum. They need to hire someone to own this and bring it into compliance with what is to be expected when you pay for a software products. I have software products costing around the same as PyCharm that have massively better support.
Again, love PyCharm, will continue to use it and recommend it, I just think they need to do better on this one area.
First, the lack of tutorials/videos on relevant topics that are up to date. For example, the Django with PyCharm video didn't have any audio and, last time I looked has not been replaced. I find video presentations to be particularly efficient as a means to quickly communicate intended usage and workflow.
Second, support becomes invaluable when it comes to non-trivial situations. For example, I still don't have an answer for this:
https://news.ycombinator.com/item?id=8569766
I frankly didn't even try to reach out to support due to my prior experience. And that's the issue. I have no problem with paying for good product. And I want to stress that PyCharm is a damn good product. When I do there's an expectation of quality support.
So I find myself at a strange point. I would unequivocally recommend PyCharm to anyone considering it. It is a very good product. And I have to do this while not being thrilled about their support, which feels really weird.
Although it is ironic that I am using the keyboard scheme from Eclipse. It's just...embedded in my muscle memory.
And at this point I freaking love gradle over Ant. I use to be an Ant fanatic (which isn't saying much), but gradle gives so much more structure to my builds now, and Maven is no longer such a pain in the ass.
Take the time to learn the shortcuts for AS. They might be long and arduous, but learn them. Then you can jump from keyboard to keyboard without having to tell a team member, "Before we begin, let me change your keyboard shortcuts to my preference".
not every team does pair programming
For a time Android Studio was unstable and not feature complete[1], there were valid reasons to stay with Eclipse. These days the only people that aren't happy about it are those that prefer Eclipse to IntelliJ. That certainly is a valid opinion, but there were people that preferred IntelliJ to Eclipse the first time around. You can never please everyone.
[1] Yes, I know NDK support isn't yet in Android Studio, it is coming.
They have enough resources to maintain both ADT and Android Studio, it's a very surprising move.
I know of a platform that forces developers to learn how to use their IDE, their Operating System, their Hardware, and recently their new language, and their adoption hasn't slowed down...
The best developers I know are debating between Maven+IntelliJ and Gradle+Android Studio. If this turns off a handful of people that are tangentially attached to Android development, so be it. The people pushing the boundaries of writing apps have switched already.
I know some people personally are more familiar with Eclipse than IntelliJ. I was one of those people. There are lots of training resources for people going from Eclipse to IntelliJ, it is a well tread path. Just give it a try.
I think it already did that before, didn't it? The shoe's just on the other foot now.
Also, you're not "forced" into anything - any Gradle compatible Java IDE will load and compile AS projects without a hitch (sadly, Eclipse Gradle support is really bad, hence the switch od IntelliJ platform).
It was announced quite a while ago that ADT was being abandoned and that Android Studio would replace it when available.
Plus Eclipse has quite good static analyzer, which is something non optional when I code in languages like C and C++.
I mean, eclipse is a broken hellscape of failed promises on its own, but gdb is.... words fail me. Truly. AND I KNOW HOW TO USE GDB PRETTY WELL.
Developers, developers, developers!
Edit: sorry if I came up like a complete tool, but every time when someone say that XCode is a good IDE small part of me dies :)
It's the only way I can use Xcode and keep my sanity :)
I use Jetbrains IDEs and Xcode every day. Whenever I have to write any significant amount of code, I switch from Xcode to Appcode.
> I'd kill for having an xCode like realtime autocomplete and documentation
From my experience, this is true for Jetbrains IDEs, and not for Xcode, particularly for autocomplete. Xcode autocomplete is a pain, and sometimes gets in the way instead of being actually helpful.
As for the idea that Google should start from scratch: that would just put them back a decade. I'm very glad they decided to build on an existing great platform instead.
If Google does anything, they need to build/buy a simulator (Genymotion for example) instead of the emulator.
XCode's autocomplete is a joke compared to Android Studio's -- a strongly typed & non-dynamic language does wonders for how efficiently & accurately an IDE can fill in your dots for you.
Jetbrains sure know how to produce an awesome IDE.
Somehow on Core I7, 26GB ram + SSD it still takes me less time to make a cup of coffee than for Eclipse to start up :(
I love Jetbrains tools!
Eclipse (I use Luna which seems to be faster than the previous version) starts in a matter of seconds on my MacBook Air (8GB of RAM + SSD).
Eclipse was great for what it was at one time though.
On the other hand, I want to be using the best and latest tools, and stay up to date with what the broader Android dev community is doing.
Would love to hear from others with similar feelings...
Android Studio is fanciful, I used it for months during the beta. There is one gotcha which leads me to prefer Eclipse. In Eclipse, the compile process is much more integrated with the IDE. The compile step appears to happen inside the IDE app/process tree/whatever. In JetBrains, the compile process is a separate process, much more disconnected from the IDE. Hence JetBrains takes more memory and is slower and running a project build and getting errors back into the IDE. I can appreciate an external build process being flexible for Jetbrains to use their IDE with nearly any language/compiler, but Eclipse worked much faster overall on a 4GB ram setup.
Eclipse has it's own compiler and it uses that to build from within the IDE. Since this is not using Javac, it means that you might and very likely will not have equivalent binaries. Not specific to Android, but this also meant that when a new version of Java is released, IntelliJ can immediately take advantage, but you will be stuck waiting on Eclipse (and NetBeans).
Personally, I prefer the IntrlliJ approach since the IDE, javac on my workstation, and javac on the build server can output identical binaries, I trust the results even more so.
Also, if I am not mistaken, IDEA has its own compiler, as well. It just doesn't emit bytecode.
Gradle covers the 80% use case really well. Everyone new to Android should use Studio + Gradle, no question. Dependencies are a breeze, the integration between Gradle & Studio is wonderful, the syntax is super simple, and the plugin handles most things by default pretty well. There are several things like build variants & package name interpolation that were impossible with Ant, difficult with Maven, and are trivial with Gradle.
The intermediate level stuff is more of a mixed bag. Some tests work well with Gradle, others (like Robolectric) are more of a pain. The NDK support isn't worked out yet. Some of the more fringe plugins like code coverage and formatting aren't plugged in yet. Here you will probably have to understand a bit about Gradle, but the tools team is making progress fixing the issues. What was a problem 2 months ago just works out of the box today with no Gradle specific knowledge.
For advanced things like writing your own plugins, then you have to know the respective build system. I don't know Maven well enough to write my own plugins. I have written a couple Gradle plugins. I have one that uploads APKs at the end of the build to various distribution APIs, one for secure signing, and one for bumping the versions whenever I want to. It was pretty straightforward to figure out.
I'd concede that Studio/Gradle is the future, and that Gradle is more powerful than Maven; my "issues" are purely emotional :) With all that there is to learn and explore in this world, I don't want to have to spend time on another Java build tool when I already know 2 good ones (Ant and Maven).
Sixty-six.
I would certainly not call Gradle easy nor fast to learn.
[1] https://www.gradle.org/docs/current/userguide/userguide.html
The Android specific ones are here:
* http://developer.android.com/tools/building/configuring-grad...
* http://tools.android.com/tech-docs/new-build-system/user-gui...
It's when your app becomes more complicated (product flavor's for example), that you need to read and understand the gradle documentation. If this is the case, then you are not a novice and 66 chapters of docs is a blessing not a curse.
and Again _the Android gradle plug-in only supports a subset of gradle_!
Anyway, having installed the JDK 8 u25 on Mac OSX, Android Studio wouldn't run. You need to export:
export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk
Modify .bash_profile in your home directory to get that to stick.
http://tools.android.com/recent/androidstudio1rc3_releasecan...
Much better than the BASH profile thingy (which doesn't work without opening a terminal, obviously).
This brings me to my most wanted feature in Android Studio - smooth native scrolling! Right now it scrolls lines-at-a-time rather than pixels-at-a-time, which is slightly annoying. Eclipse on Windows was very nice in this respect.
It's also alarming to me that nobody else here on Hacker News seems to be concerned about this.
I know Google isn't a free-software business like Red Hat, but they've benefited enormously from the work of the free software community, in particular in building Android, and they touted Android as being open. It was inspiring to see a really open phone platform birthed, but every month it seems like Android is less and less open. Supporting only a proprietary development toolchain is one more step toward the dark side.
Android Studio is open source:
https://android.googlesource.com/platform/tools/adt/idea/
There is certainly a commercial version which is not, but you don't have to use that and Google isn't shipping that version at last check.
I'm happy that the truth is much brighter than what I thought.
Apparently Google is waiting that JetBrains eventually releases CLion.
It is anyone's guess when it will achieve parity with CDT.
To my gradle file. I've set up a pretty simplistic JNI directory structure though. I can provide more info if this isn't enough as it's been awhile since I've set up a project from scratch.
I want native code debugging, refactoring, static code analysis (Codan like), code navigation.
I can't remember what it is called, but you will be able to find it on jet brains homepage.
JetBrains et al really built an impressive IDE platform. I'm glad there are open source alternatives to Eclipse.
The Community Edition of IntelliJ is open source. Android Studio, which is a fork of Community Edition, is also open source.
The current NDK integration is a dead end, we don't recommend using it, as we are working on a new version that use the native support in Gradle.
There is absolutely nothing stopping you from using NDK code with AS and Gradle.
I'm having trouble getting my point across but basically what I'm saying is that most of my time is spent thinking. The coding part is small and as long as the IDE is not batshit crazy I kind be just as productive in any IDE.
I will admit that there is one IDE that I like the best but I wouldn't argue that I'm able to finish projects twice as fast with it than with any other reasonable IDE's.
And yes, XCode, Eclipse, Android Studio are more or less the same.
Glad to hear though, I'll try it for my next android project.
Also, not to belittle your investment in Eclipse, but counting university is laughable and unless you're a maestro and use some random plugins that make you a 10x developer you're probably better off switching.
As others have mentioned you can change your keymap to Eclipse, or just learn new ones. Hell, I only know 4 keystrokes: autocomplete, find class by name/click, rename variable/method, and reformat code. Yet somehow I am successful -- I doubt it's my IDE. It's just effortless and I don't have to deal with stupid build crap while writing code. Granted, I don't know much about modern Eclipse, I haven't used it for two years.
If it weren't too much effort I'd be writing java in vim where I have almost 8 years experience, but I haven't gotten around to bothering because my environment is not the bottleneck to writing good code. It's probably more the crappy Android APIs and unexpected behaviors of standard libs that will unlikely be timely fixed.
I've been using Eclipse for my day job for the past 4 years and I have no issue switching between that and Android Studio.
Why?
Because I got burned by Eclipse so many times I got used to developing solely with vim and ant - then I started using NetBeans+NBAndroid and found it comfortable enough.
Still, now that it's 1.0 I'll eventually migrate.
As for advantages over Eclipse, they've been minor. No real big improvements except the automatic dependency management of Gradle.
The reason for the giant effort to switch the entire ecosystem over is a bit mysterious to me.
Likewise, under Compiler there's a "Java Compiler" panel in the hierarchy. You can switch it to using the Eclipse compiler which I think allows you to launch with errors in your project.
For me, IntelliJ's auto-complete is a lot nicer than Eclipse's and that makes me more productive.
However, i've found that i do not notice that so much and get much more benefit from gradle then ant. Also, the project structure has ended up being alot cleaner and easier to navigate for me. Plus, I like all the slick IntelliJ style features.
As for the giant effort to switch? I'd say gradle is a big one.
It was also educational just how big a performance difference at code or xml editing existed between ADT and the same Eclipse installation on a vanilla Java project: the latter is like using a machine a decade newer.
The tools people have always had a casual disregard for NDK users too, who make a disproportionately large amount of the Play Store revenue. The whole thing has never seemed like it was dog fooded at all, just developed for amusement.
If you want the latest and greatest IntelliJ features, use IntelliJ + Android Plugin. If you want the latest and greatest Android specific features, use Android Studio.
If you have a paid license of IntelliJ, you are probably better off with IntelliJ + Android plugin.
ADT plugin is being abandoned.
Why do they make it SO HARD to even delete a project?
http://stackoverflow.com/questions/16710290/how-to-delete-a-...
You will be prompted if you really want to delete the project. Click Yes.
Tools team promised that compatibility breaking changes will stop after 1.0 until other major revisions. Let's hope that holds up :)
Eclipse + Java has always been a non-intuitive headache for me - will this IDE support Python? Has Google made Python a first-class language yet in their stack?
Inquisitive minds would like to know.
If you people think the target market for this is just Eclipse and Android developers then you have not been paying attention to the larger picture of cross-platform stacks.
It even has the word Studio in the name for crying out loud.
You're being downvoted because your comment reads as being off-topic and/or uninformed (especially with the Python mention). If by Visual Studio and C# you were referring to Xamarin or Mono for Android it would have been clearer if you mentioned that. It would be helpful if you also mentioned why you feel Android Studio targets developers who use those technology instead of the larger pool of Android developers in general. I don't think there's a bias against those technologies here, only against poor comments.
If you use the android emulator with the x86 android image (on a HAXM capable CPU), then it runs fine. iOS has always used a simulator.
https://developer.android.com/sdk/index.html
https://developer.android.com/training/index.html
Things are looking good for Android development, especially with regards to Firebase being acquired.
You can use MIT's AppInventor via the website, so presumably you could use an Android based web browser if you really wanted to. Seems like it would be pretty painful trying to do that from a small screen device however.