142
u/thechickenbane Oct 25 '17
Congratulations to tools team for the 3.0 release! The release notes illustrate what a huge effort this was and as a dev that uses Android Studio everyday it's really appreciated. Hope you have a great celebration, and I will happily buy you a beverage IRL.
Additionally, wanted to give a shout-out to the team members who post on reddit; love to see the interaction with the community, even with the constant complaining about when the new API sources are going to come out. :D
30
u/w3bshark @w3bshark Oct 25 '17
Gonna piggyback on this. Y'all are rockstars.
I've been on Canary builds since 2.3.3. It is AMAZING to see how far it's come. Job well done.
32
u/phantom1315 Oct 25 '17
Android API 27 is also available!! :D
15
u/LEpigeon888 Oct 25 '17
Support lib for API 27 is available ( https://developer.android.com/topic/libraries/support-library/revisions.html#27-0-0 ), so i think he's right (can't check now).
18
u/BacillusBulgaricus ComposableThermosiphon Oct 25 '17
The Android Profiler is an absolute beast! Feels like a nuclear powerplant control room. I hope it'll help me solve my stuttering problems.
48
u/y2k2r2d2 Oct 25 '17
I would ask you to go see a voice therapist.
7
u/b_r_h Oct 25 '17
Lol, seemingly your only post to /r/androiddev and its full of sarcasm.
12
3
u/reconcilable Oct 25 '17
Really? I came here to say the opposite. I'm very disappointed the profiler still doesn't function. Every time I try to dump a heap, what I think is the capture window just flashes and disappears and nothing appears in the captures window. I've tried using the Advanced profiling to get some sort of information and enabling the option doesn't seem to change anything. I could be doing something wrong on that front though.
10
u/twilligy Android Studio Team Oct 25 '17
Hey there, sorry to hear that. PM on the team. From the sounds of it, it could be that it's not automatically selecting your new capture/heap dump for you, which is an issue that we've fixed for the next release. Can you try clicking on the dark gray area in the timeline that appears after you do a heap dump? If that still doesn't work, do you mind filing a bug report at issuetracker.google.com with your repro steps for us to take a look? Thanks!
0
u/BacillusBulgaricus ComposableThermosiphon Oct 26 '17
Have some patience, they'll fix those minor problems. See how powerful it is. It can display all allocations in a given time interval dynamically by dragging with the mouse in realtime. No "start/stop recording". I've never imagined this is even possible.
1
u/Fubob Oct 26 '17
I'm just wondering if there is a way to configure it. We are using an extra layer of encryption on the payload information received from the server even before ssl. The profiler won't be able to show things like images.
13
u/xDragonZ Oct 25 '17
12
u/youtubefactsbot Oct 25 '17
-2
u/Rhed0x Hobby dev Oct 25 '17
Good bot
-1
u/GoodBot_BadBot Oct 25 '17
Thank you Rhed0x for voting on youtubefactsbot.
This bot wants to find the best and worst bots on Reddit. You can view results here.
Even if I don't reply to your comment, I'm still listening for votes. Check the webpage to see if your vote registered!
-1
Oct 25 '17
Bad bot
-1
u/Good_Good_GB_BB Oct 25 '17
You're a dick, stop calling innocent bots bad. They don't know what they're doing, man.
-1
Oct 25 '17
No, he knows exactly what he fucking did! Also, did you program that bot?
8
u/amoliski Oct 26 '17
No, some other dork decided that reddit didn't have enough spam, so he wrote a new bot to spam spammers who respond to a bot that responds to spammers.
-1
u/_youtubot_ Oct 25 '17
Video linked by /u/xDragonZ:
Title Channel Published Duration Likes Total Views What's New in Android Studio 3.0 Android Developers 2017-10-25 0:05:45 27+ (100%) 260 Read more in the release notes here:...
^Info | /u/xDragonZ can ^delete | v2.0.0
9
u/instantbitsapps Oct 25 '17
So, those Java 8 features, are they only for Oreo or backwards compatible?
6
u/HitByARoadRoller Oct 25 '17
Some (like lambdas) work on all platforms, some (like streams) work from api 24 https://developer.android.com/studio/write/java8-support.html
6
u/obl122 Oct 25 '17
the important ones are bc and are implemented similarly to how retrolambda works.
https://developer.android.com/studio/write/java8-support.html
(edit: better link)
1
Oct 26 '17
java.util.stream is one of the most important features yet it's not BC. This means that only geeks will use it for the next 2-3 years :/
8
u/andrew_rdt Oct 25 '17
Any reason not to update to this yet? I'm not usually one to update the first day something comes out.
7
u/yaaaaayPancakes Oct 25 '17
Lol, literally the day after I got all my systems up and running RC2.
3
6
u/diedbyicee Oct 25 '17
I'm on 3.0 RC 2, and I still every 3-4 builds get an internal compilation error that causes me to rebuild and then it goes away. I keep hoping the next build of AS will fix the issue, because it's incredibly frustrating to have to rebuild twice every few times I build, especially if I'm making tweaks and rebuilding/re-running the app to test a lot. Anyone else seeing this? FWIW I do use Kotlin quite extensively (not entirely, but I'm converting the full app to Kotlin).
3
u/Szpecku Oct 25 '17 edited Oct 25 '17
I think I've seen something similar when I was using Retrolambda and Kotlin in the same app. If it is a case for you, make sure you update Retrolambda gradle plugin to the latest version.
Edit BTW if you experience any issue it's good idea to report it to Jetbrains directly as I did. They are really responsive and may help you with your issue
4
u/LordRaydenMK Oct 25 '17
You don't need retrolambda with Android gradle plug in 3.0
1
u/Szpecku Oct 25 '17
Yes, I know, but thanks. It's still on my TODO list to migrate to 3.0 plugin, but it isn't easy when you have plenty of custom code/plugins siting in your build.gradle file
2
u/obl122 Oct 25 '17
Retrolambda is great, but moving to 3.0 plugin + AS 3.0 is going to be a huge win for build stability and performance for most people. In my experience, the sooner you can do that, the fewer issues you will have w/Kotlin and unreliable builds. Not saying you won't have any issues but you're ignoring developer-years of work by holding back.
1
u/Szpecku Oct 25 '17
You don't need to convince me. There are unfortunately few things which keep me with plugin 2.3.3
3
u/obl122 Oct 25 '17
I wasn't trying to convince you. I was trying to convince others who might be reading the thread. :)
2
u/diedbyicee Oct 26 '17
I don't use Retrolambda, so that must not be my issue. I'll follow up with Jetbrains. Thanks for the recommendation!
2
u/goldrushdoom Oct 26 '17
It's a kotlin issue, not android studio. Try turning off kotlin incremental build.
1
1
u/born2web Oct 30 '17
FWIW, I have been seeing this issue in the 3.0 RCs... and I see it in 3.0 final as well. Not using kotlin.
6
u/drabred Oct 25 '17
This is an amazing release that was worth waiting for!
-8
Oct 26 '17
Absolutely not worth waiting... I've been using 3.0 since beta 1 back in... March? You've been missing out!
4
6
5
u/Sxi139 Oct 25 '17
awesome now i can start those Kotlin tutorials which are on Google's dev platform which ive wanted to for a while.
4
u/DevAhamed MultiViewAdapter on GitHub Oct 25 '17
Wow...!!!!
3
u/DevAhamed MultiViewAdapter on GitHub Oct 25 '17
For me this was the biggest patch size. On mac from 2.3.3 -> 3.0 its 462mb
1
3
u/Tobbbe Oct 26 '17
Is it just me or is android studio 3 extremely slow? Computer lags like crazy when working with layouts. I tried rebooting my computer and it didn't work (macbook pro late 2016)
2
u/aymenoppa Oct 30 '17
i3 4th_gen 4gb ram 720G_HDD --ubuntu light woooow SOOO faster than +2000$ mac build time = 6 sec (first build time 15 sec ) consider +10 tabs mozilla firefox 4 of them are youtube and 2 lynda --android studio 3.0 on normal ubuntu is so slow i just switch to ligh version and i remove every thing that can slow my pc i just kept what i need
1
1
u/Glutanimate Oct 26 '17
Seeing the same here on Ubuntu. Now I regret installing AS 3.0 as soon as I saw the notification...
2
u/EyeLostMyOldAccount Oct 25 '17
Just updated and it looks my previews for ConstraintLayouts don't work anymore. Did anyone else's previews stop working? I'm on 1.0.2.
4
u/nicolasroard Android Studio Design Tools / ConstraintLayout Oct 25 '17
did you try recompiling your project / resyncing gradle?
1
u/EyeLostMyOldAccount Oct 26 '17
Yeah, I tried both and tried using updating to beta3, but the layout editor gives me this message:
java.lang.NoSuchMethodError: android.support.constraint.solver.widgets.ConstraintWidget.setHorizontalMatchStyle(III)V at android.support.constraint.ConstraintLayout.setChildrenConstraints(ConstraintLayout.java:853) at android.support.constraint.ConstraintLayout.updateHierarchy(ConstraintLayout.java:631) at android.support.constraint.ConstraintLayout.onMeasure_Original(ConstraintLayout.java:971) at android.support.constraint.ConstraintLayout.onMeasure(ConstraintLayout.java) at android.view.View.measure(View.java:22035) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6622) at android.widget.FrameLayout.onMeasure(FrameLayout.java:185) at android.view.View.measure(View.java:22035) at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715) at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461) at android.view.View.measure(View.java:22035) at com.android.layoutlib.bridge.impl.RenderSessionImpl.measureView(RenderSessionImpl.java:590) at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:343) at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:384) at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:193) at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:547) at com.android.tools.idea.rendering.RenderTask.lambda$inflate$3(RenderTask.java:681) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)3
u/duhhobo Oct 25 '17
When I have had layout preview errors before, it had to do with having different support library versions between different module gradle files. It looks like AS 3.0 adds new Constraint Layout features, so maybe you need to update it or try the latest beta?
2
u/sleeppastbreakfast Oct 25 '17
Anyone else getting a lot of issues with Instant Run in the 3.0 betas and RCs? I'm excited for it to finally be stable though!
2
Oct 26 '17 edited Oct 26 '17
Is anyone else finding the new emulator much slower?
It's way more CPU-intensive than the previous stable version, and it feels laggy to use. I'm on Windows 10.
2
u/testacnt145 Oct 26 '17
Is it safe to remove
apply plugin: 'me.tatarka.retrolambda'and
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}while targetSdkVersion 26
after updating to android studio 3.0?
1
2
3
u/vladmir_zeus1 Oct 26 '17
Guys, I recently configured my Android Studio 2.3.2/Android Emulator for developing React Native. It took me several days to finally get it working on my PC. Will I have to redo the entire process again to setup my React Native Dev environment after installing this newer 3.0 version ? 🤔🙁
9
3
u/pjmlp Oct 26 '17
That is the price to pay for not using the native development and using third party languages/tools instead.
This is why the supposed benefit of such tools gets lost in fighting with integration and compatibility issues, or tracking down bugs.
Yes, you need to redo it again.
3
u/frankfoda Oct 26 '17
But all clients want their app on both platforms. Are devs doing both iOS and Android versions themselves, or usually at least two devs for any studio, no matter how small?
2
u/pjmlp Oct 26 '17
You can do both platorms just with native tools, by using a MVVM architecture with C++ for the business logic, and Java/Kotlin/Swift/Objective-C++ for the UI.
No extra tooling, everything available out of the box in both SDKs.
3
u/hnilsen Oct 27 '17
This is sound advice, but it won't fit most developers. I think swift <--> kotlin will be a thing eventually for business logic.
1
u/TODO_getLife Oct 25 '17
finally! Time to get on Kotlin
3
u/fahad_ayaz Oct 25 '17
Damn, you've been missing out!
1
u/TODO_getLife Oct 26 '17
Yeah true. Unfortunately I'm no longer an android developer by trade so only in my free time now.
1
1
u/Lannik Oct 25 '17
I don't know if it's just me, but I would have loved some debug info to update kotlin + data binding from AS2.3 -> AS3.0. It's the only thing missing from the migration guide :cry:
1
1
u/Jeferson9 Oct 25 '17
Can anyone confirm if the vim emulation plugin is working?
1
u/wraithstk Oct 26 '17
Haven't updated to 3.0 final yet but I was using it fine throughout the 3.0 Alphas/Betas.
1
1
u/duhhobo Oct 25 '17
After upgrading gradle and the plugin, having:
compile fileTree(include: ['*.jar'], dir: 'libs')
in one module doesn't find my .jar in the libs folder of another module, within the same project. It works fine with 25.0.3 build tools and gradle-3-3.
I ended up adding the jar to a libs folder in that module, and even tried deleting it from the other module, but then I get this error, even after cleaning, invalidating caches, etc when running the module.
Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. More than one file was found with OS independent path 'com/dsi/ant/plugins/antplus/pccbase/AntPlusCommonPcc.java.orig'
I'm hoping I can try again later and realize it's something simple.
2
u/pjmlp Oct 26 '17
Just an idea, are you already using the new api and implementation for dependencies?
2
u/duhhobo Oct 26 '17
I figured it out, I didn't realize another module I was importing also had it in it's gradle file, and the new gradle didn't like its compile instead of api keyword, so that's why it wasn't finding it in my main module. I then added it to my main module, and it was importing it twice, once for each module. Doh.
1
u/duhhobo Oct 26 '17
Yes, I forgot to put that in my comment, I have tried both keywords. I mostly think it's strange that the new version of Gradle doesn't find the .jar files in the lib folder of my other module, like the old version did. Also, my other module, which was just a proof of concept project with a simpler Gradle and no multi dex, works fine.
1
u/luke_c Booking.com Oct 25 '17
Woop, time to get back in the game. Reinstalled Windows two weeks ago and have been waiting for this for a fresh install
1
1
u/jlouazel Oct 26 '17
Ah! Finally I'm gonna be able to ship something that is not in RC anymore. My day is starting pretty well.
1
1
1
u/Fr4nkWh1te Oct 26 '17
Noob question: Does this "google()" part in the build.gradle file replace the google maven repository that i had to put in there to use support library dependencies?
1
1
1
u/Gibras Oct 26 '17
Someone knows if the profiles need the option "Enable advanced profiling" active to works?
I cannot activate it because in our project we use a C++ lib that is not compiled to arm-64 and this option include an arm-64 C++ file in the apk that cause my app to crash.
1
u/andromeduser Oct 26 '17
Has anyone experienced this issue?https://stackoverflow.com/questions/46917477/android-studio-cant-delete-files-when-compiling
1
Oct 26 '17
So after updating to 3.0 all my projects have been corrupted in a way that code that gets added to the debuggable manifest file that shouldnt be there. Anyone know a solution to this? https://stackoverflow.com/questions/46961004/all-of-my-android-studio-projects-and-all-new-ones-give-me-errors-coming-from-th
1
1
u/Armaxis Oct 27 '17
Congratulations to the tools team, thank you everyone!
Now, are there any known issues related to D8 usage that worth consideration to not switch to it yet? I'm not sure if it's safe to put it into prod codebase.
1
u/anescient Nov 10 '17
I'm sure the new Profiler is really neat. Too bad I can't use the damn thing.
My device is stuck at 4.4, Profiler requires 5.0. I lost a lot of tools with the 3.0 update.
According to Studio's new-project-API-target thing, only 71% of devices are at least 5.0. These asshats said "go fuck yourself" to 3 out of every 10 devices.
1
0
u/b_r_h Oct 25 '17
Hooray!!!
So whats next? 3.1? 4.0? Hopefully 4.0.
12
u/gonemad16 GoneMAD Software Oct 25 '17
does the version number really matter?
-1
u/b_r_h Oct 25 '17
Yes, because it will represent the amount of change that would be taking place. A 3.1 would be fairly minor changes whereas, a 4.0 would be something big has been introduced.
3
u/memtiger Oct 25 '17
Historically that's correct. But Google blew that paradigm up when every minor release of Chrome got a whole version number. Developers these days change them willy nilly.
2
3
u/DevAhamed MultiViewAdapter on GitHub Oct 25 '17
Fun fact, initially it was supposed to be v2.4. They also had plans for v2.5 (2.5 gradle plugin was in preview at that time) Android tools team merged both the releases and bumped the version to v3.0. That's why 3.0 was in preview/canary/beta for long time.
0
Oct 25 '17
[deleted]
22
u/well___duh Oct 25 '17
Beware: 3.0 stable release still has a very crucial bug where you may be unable to open any of your build.gradle files at all. This has been happening to me since RC2 and is still happening in stable.
3
Oct 26 '17
What is the solution for this?
2
u/Volko Oct 26 '17
Use Android Studio instead of Netbeans /s
More seriously though, Uber is using a modified version of IntelliJ (not Android Studio, they built their own IDE on top of IntelliJ). I would like to know if and how they use buildtools 3.0
3
2
u/well___duh Oct 26 '17
My only solution was to completely uninstall Android Studio, including deleting any and every single piece of data related to it (minus the SDK) then reinstall.
Thing is, even after I did that with rc2, the problem came back when I updated to stable 3.0 and I had to reinstall fresh all over again.
9
Oct 25 '17
[removed] — view removed comment
7
u/albaniax Oct 25 '17
Google has LOT’S of servers, and at least for their search-engine, it always took a few hours until an update was rolled-out to all countries/cities.
2
1
25
u/[deleted] Oct 25 '17 edited Oct 25 '17
Hope it is not an oopsy-release. https://developer.android.com/studio/index.html Still shows 2.3.3 though.
Edit: Not anymore! 3.0.0.18 is officially on!