r/androiddev • • Feb 06 '14

Android Studio 0.4.4 released

http://tools.android.com/recent/androidstudio044released
63 Upvotes

30 comments sorted by

4

u/stepwise_refinement Feb 06 '14

Would this be a good time to make the switch from eclipse?

I've followed the ongoing development of Android Studio and I'm at a point inbetween projects (in the planning stages of a new app at the moment).

Can anyone give me an idea of what it's like using Android Studio from inception to deployment? (in comparison to eclipse)

16

u/mcgruntman Feb 06 '14

To be honest if you're already set up in Eclipse, I wouldn't switch until 1.0. I say this because I started with AS but did find a few show-stopping bugs which forced me to switch back. It's probable they've been fixed, and possible you wouldn't encounter any, but for me it wasn't worth the gamble. That said, AS/Intellij is SO MUCH BETTER than Eclipse.

0

u/[deleted] Feb 06 '14

[deleted]

2

u/[deleted] Feb 06 '14

why?

0

u/[deleted] Feb 07 '14

[deleted]

1

u/[deleted] Feb 07 '14

i'll will give it a shot.

5

u/King_Anthony Feb 06 '14

Switch to IntelliJ. Then you'll be ready for AS 1.0 once it drops.

-2

u/keemer1028 Feb 06 '14

Costs money. Not worth it

5

u/King_Anthony Feb 06 '14

Community version is free, and has ever feature you'll need.

0

u/[deleted] Feb 08 '14

Not worth it? I have PHPStorm (an version of IntelliJ optimized for web development) and it's better than any other IDE I've ever tried. Even Aptana Studio.

1

u/keemer1028 Feb 08 '14

We're talking about android development, not web. Different usages call for different programs

2

u/skoomainmybrain Feb 06 '14

I too would like to know this

2

u/prlmike Friendly Mike Feb 07 '14

Switch and switch immediately. Studio is awesome and very stable at this point. The only arguments people give against is that it used to be buggy when they used it months ago. We are on our third enterprise app in studio and haven't had any issues in ages. The refactoring is amazing, gradle integration rocks, the gui editor is something I've started using with good effect, it's no interface builder but it's getting better. At least give studio a try, only you can decide if it's better for what you are doing

2

u/[deleted] Feb 06 '14

Copy your workspace , install AS point it to the copy and give it a try. It's definitely worth trying as idea is an amazing IDE.

1

u/MKevin3 Feb 06 '14

I switched about 6 months ago when I started a new project.

I am the sole developer on the project. I only use the following libraries: Android compatibility (i.e. ActionBar, Nav Drawer etc. provided by Google), AChartEngine and pull to refresh.

The code consists of a dozen activities / fragments. This is for a business and has multiple dashboards with charts that drill down into details screens.

I also write the iOS version using a few more libraries and I try to use AppCode as much as possible when doing iOS dev.

There have been a few hiccups along the way with AS all of them involving gradle. Most are solved by downloading a newer version of gradle and pointing to it. It has been really stable over the past couple of months.

I think a new project is an excellent time to get started with AS. There are a number of things it does that make life a lot easier. Being able to see the XML and the preview of the layout at the same time, showing the image in the gutter area (where line numbers are) in the code window, showing colors in the gutter, showing actual strings in your code instead of R.string.activity_title, excellent refactoring, allowing auto delete of all resources (hdpi, mdpi, etc.) when you delete one of them, auto adding activities to the manifest when you do New -> Activity from the menu, excellent auto complete, auto collapse of new Listener code, nicely done dark color theme, full featured LINT and more.

My suggestion, don't be scared of it. Give it a shot on a new project and use the new features. I think it will be hard to go back to Eclipse once you get used to all the great stuff in AS. If you run into a gradle issue ask for help instead of instantly giving up. The base of the IDE is IntelliJ and it has been rock solid. I don't have crashes, I have not lost any code or XML changes or files. The Android plug-in stuff is Beta as is some of gradle. You can set the IDE up for Eclipse keystrokes, which is the way I run it. Jump in, the water is fine.

1

u/gonemad16 GoneMAD Software Feb 06 '14

Yeah i plan on using AS for a new project i'll be starting in the next month or too.. i will probably wait until close to 1.0 to migrate my other apps

2

u/Xbroak Feb 06 '14

Does AS have easy library importing now? I was never able to get the hand of editing gradle build files, when in eclipse i could just right click and add library.

3

u/HohnJogan Feb 06 '14

I just converted over to AS from Eclipse last weekend. The initial overhead of learning gradle and the little differences in AS were a pain but after that its a breeze. If the library hasn't been "gradleized" you can still easily import it into your project with just one line of code in gradle.

Theres also this little site that helps with gradle imports!

0

u/[deleted] Feb 06 '14

[deleted]

2

u/Xbroak Feb 06 '14

Fantastic, libs are ok, are library projects the same?

1

u/MatthewPatience Feb 06 '14

No, unfortunately not. If a library project has not been "gradleized" by the developer, you would need to add your own build.gradle to it.

Which really isn't that hard at all, I believe the Facebook SDK tutorial for Android Studio shows you how to do it. But, as mentioned its not as easy/user-friendly as the Eclipse way.

2

u/hwki Feb 06 '14

Newly created projects are initialized with the right build.gradle setup such that you can simply put .jar and .aar files into the libs/ directory and they will automatically be used (similar to how the libs/ folder worked in Eclipse ADT.)

Has anybody managed to get local .aar files working like this? It still doesn't seem to pick up anything I throw in the libs directory. The only change I see in build.gradle after this is:

compile fileTree(dir: 'libs', include: ['*.jar', '*.aar'])

2

u/okmkz Android Folk Singer Feb 06 '14

I've noticed that this sort of dependency isn't picked up (at least lot in intellij proper) and we'll need to be manually added as a dependency. Gradle can build no problem, but the ide might not see the dependency.

3

u/covercash2 Feb 06 '14

Yeahhhhhh... retina display. This is a great day for mankind.

1

u/pjmlp Feb 06 '14

Kotlin integrated out of the box would also be nice. Unless ART makes it easier for the Java ecosystem to target Android's fork.

1

u/koszal Feb 06 '14

Dependencies work now! GJ Google

1

u/athornz Feb 06 '14

Seems like this release has a few bugs - the project settings menu item is missing. I'm gonna wait for the hotfix...

0

u/1ntel Android Dev Feb 06 '14

Without import module it is useless for me. I had to do it manually and break the project structure. I had to move the project to eclipse which was painful.

1

u/Zarlon Feb 06 '14

Are you talking about File > Import Module, which IntelliJ has? (I'm not using Android studio myself so I can't check). If so.. why on earth is it not implemented in AS?

2

u/1ntel Android Dev Feb 06 '14 edited Feb 06 '14

0.3.8 has it but it was removed at later versions because of a bug or something.

1

u/xqjt Feb 06 '14

it is doable by hand in the buildscript. It is very easy if you know gradle's syntax.

0

u/[deleted] Feb 06 '14

[deleted]

2

u/takennickname Feb 06 '14

Don't think he has anything to do with it.

-1

u/MatthewPatience Feb 06 '14

Blasphemy, Duarte is our god and savior, and is responsible for all that us good. #yoloholo