Google has offered the most recent replace to Android Studio, taking the solid channel as much as model three.1. In step with a publish at the Android Builders Weblog, this free up specializes in product high quality and construction productiveness. The remaining primary replace incorporated an entire new programming language, and three.1 continues to strengthen the advent of Kotlin with new lint exams amongst different enhancements.
Expand & Construct
Kotlin lint code high quality exams can now be run by the use of the command line the usage of the “gradlew lint” command (see above). SQL code final touch, observation reinforcing, and code navigation were added to support inline SQL/Room Database modifying. The IntelliJ platform has been up to date to 2017.three.three, together with Kotlin language intentions and SVG symbol strengthen.
The default dex compiler in Android Studio has now been switched to D8, generating as much as 15% smaller and extra optimized bytecode. It is also quicker, extra reminiscence environment friendly, and can give higher step by step debugging. Ensure that the “android.enabled8″ flag in gradle.homes is both absent or set to ‘true’ for D8 to be the default.
You can additionally understand that there is a new construct output window in three.1 (above). Construct standing and mistakes are arranged into a brand new tree view and legacy Gradle output could also be consolidated right here.
Check & Debug
The Android emulator has been given a brand new fast boot function which will get you again right into a consultation in underneath 6 seconds. The emulator works extra like a bodily Android tool now, chilly booting to start with however bearing in mind quicker next restarts. API 24 (Nougat) – API 27 (Oreo) are supported, in addition to the brand new Android P Developer Preview pictures. A brand new frameless mode (under) is helping app trying out for monitors with 18:nine ratios and notches (DisplayCutout APIs).
C++ efficiency profiling (above) is now imaginable in Android Studio three.1, along with Kotlin and Java. This comprises recording C++ approach strains. A brand new Community Thread view (under) permits inspection of multithreaded community visitors and there is a new Community Request tab so you’ll be able to observe requests.
Android Studio three.1 is to be had from nowadays. You’ll improve your present model or obtain the brand new construct from the Android Studio website online. For more info in regards to the options discussed above, check out the detailed free up notes. Then again, you’ll be able to watch the video under, wherein Android Developer Advocate Wojtek Kaliciński runs via the entirety that is new.