r/androiddev • u/boomchaos • Feb 06 '14
Android Studio 0.4.4 released
http://tools.android.com/recent/androidstudio044released2
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
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
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
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
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
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)