Android Studio 3.0 – Everything You Need to Know

Being an Android developer, I readily expect new and innovative features from Google to help developers like me create and test apps easily than ever and Android Studio 3.0 is no different. First announced in the Google I/O 2017, Android 3.0 is offering support for Kotlin along with a number of other features.

Free Code Editors For Android – Best Of

.no-js #ref-block-post-22179 .ref-block__thumbnail { background-image: url(“http://media02.hongkiat.com/thumbs/250×160/android-code-editors.jpg”); }

Free Code Editors For Android – Best Of

Programming can be fun when done with the right tools – development tools that let you write and…Read more

If you can’t wait to try out the new features, then download Android Studio 3.0 Preview and enjoy trialing it. Meanwhile let me walk you through the goodness of Android Studio 3.0 — the new Android IDE.

Android Oreo support

Android Studio 3.0 adds support for writing apps for Android 8.0 Oreo including the new features supported in Oreo. Using this new IDE, you can easily create adaptive launcher icons, and add new types of fonts in your apps.

Android Studio 3.0 supports Android 8.0 OreoAndroid Studio 3.0 supports Android 8.0 Oreo

Adaptive icons display a variety of shapes on different devices, per different OEMs. You can create an adaptive launcher icon using the Adaptive Icon wizard, which you can access by right-clicking on /res folder and choosing New, then “Image Asset“, and clicking “Launcher Icons (Adaptive and Legacy)“.

As Oreo now supports downloadable fonts, you can now add them in your apps to reduce the size of your apps’ APKs. Similarly, you can also add fonts in XML format in your apps — as simply as you add any other resource file.

Base platform update

Android Studio 3.0 comes with IntelliJ Platform 2017.1.2 that adds numerous new features and improvements in the Android IDE. These improvements help you code faster, and brings features such as parameter hints, instant search results, new lint checks, semantic highlighting, and many more.

New features support

Java 8 features support

As developers are now getting used to Java 8 features, so has Google improved support for such language features in Android Studio. It means you can use OpenJDK APIs like java.time, java.nio.file, and java.lang.invoke, and so you can also use libraries built using these APIs in your apps.

Kotlin language support

Kotlin is a Java-interoperable language that reduces boilerplate code, avoids null pointer exceptions, and introduces numerous other improvements over Java. It’s more expressive and concise in comparison to Java, and with Android Studio 3.0, now you can convert Java files to Kotlin or code directly in Kotlin.

Android Studio 3.0 supports Kotlin languageAndroid Studio 3.0 supports Kotlin language
Instant Apps support

Instant Apps are like web apps but native apps that can use Android APIs and provide a native look and feel to your app. For the end user, it’s as easy as opening a web link; but for the developer (that’s you), it’s about modularising his app into modules called ‘feature module’ that collectively makes a ‘feature APK’.

Android Studio 3.0 supports Instant AppsAndroid Studio 3.0 supports Instant Apps

Instant Apps can run without getting installed like web apps, unlike regular apps. To make it work, you need to upgrade your existing app to support instant apps — Android Studio 3.0 provides ‘Instant App’ and ‘Feature’ modules for the same. I think it’s an improvement over regular apps; what do you think?

New and updated tools

New Android Profiler

Android Profiler is the new monitoring tool for Android which replaces the old Android Monitor tool. It’s much better than the old tool and provides a real-time, unified view of the app. You can access the same by opening View menu, then going to “Tool Windows“, and finally choosing “Android Profiler“.

Android Studio 3.0 introduces Android ProfilerAndroid Studio 3.0 introduces Android Profiler
New APK Debugger

The all new APK Debugger in Android Studio 3.0 brings improved debugging capabilities. That being said, it lets you debug APKs if they’re debuggable — even if it’s not built from an Android Studio project, unlike before. You can access the tool by going to “File” menu and clicking “Profile or debug APK” option.

Android Studio 3.0 features new APK DebuggerAndroid Studio 3.0 features new APK Debugger
New Device File Explorer

The new Device File Explorer is a tool to access the connected device’s filesystem seamlessly. It allows you to view, copy, and delete files on the device, and you can also open those files in this IDE. You can access the file explorer by clicking “View” menu, choosing “Tool Windows“, and clicking “Device File Explorer“.

Android Studio 3.0 features new Device ExplorerAndroid Studio 3.0 features new Device Explorer
New Android Plugin for Gradle

Android Plugin for Gradle 3.0.0 is a new, improved Gradle plugin that helps address build performance issues of the previous plugin and offers various other improvements. These include faster configuration times, variant-aware dependency resolution, and my favorite — faster incremental builds.

Old tool improvements

Android Emulator features

Android Emulator bundled with Android Studio 3.0 comes with numerous speed and performance improvements including support for OpenGL ES 3.0 for API level 24 and above. Moreover, it features an easier way to generate a bug report for your running app, and a quicker way to submit emulator-related bugs.

Android Studio 3.0 brings Android Emulator improvementsAndroid Studio 3.0 brings Android Emulator improvements
Layout Editor features

Layout Editor is used to design layouts in a drag-and-drop editor, and the new Android Studio brings various improvements to this interface maker. The new features includes enhanced drag-and-drop view insertions, new error panel, support for Barriers and Groups, and improved creation of Chains.

Android Studio 3.0 brings improved Layout EditorAndroid Studio 3.0 brings improved Layout Editor
APK Analyzer features

APK Analyzer is a tool to analyze APK and understand its composition after the build process is complete. It helps in reducing file size and debugging DEX files and resources. With Android Studio 3.0, it comes with new filtering options, improved tree view, and better examination of Proguard-enabled APKs.

Android Studio 3.0 includes improved APK AnalyzerAndroid Studio 3.0 includes improved APK Analyzer

In order to use the APK Analyzer, just drag and drop an APK into the Editor window of Android Studio. Alternatively, you can switch to Project perspective and open an APK in the Project window. And lastly, you can also go to Build menu, choose “Analyze APK” from the options, and then select your APK.

Layout Inspector features

The improved Layout Inspector in this Android IDE comes with enhancements that let you easily debug layout issues. These include new search feature, categorised properties, etc. You can access this inspection tool by going to Tools menu, choosing Android option, and then clicking “Layout Inspector“.

Which features shall be next?

This was all about the new features and improvements in Android Studio 3.0. Though this list will excite many yet, some of you would still be looking for more feature updates in Android Studio. And why shouldn’t you? Android Studio is for developers like you, and you must have a say in its upcoming features.

Thankfully, Google does listen to developers like me and you — just head over to the Android Studio Project Site. Here you’ll see different ways to raise your voice, report bugs and suggest new features — just follow the instructions there to speak your heart and do remember to include all necessary information.

If you enjoyed reading this post or wish to share your favorite feature in Android Studio 3.0, just write a comment below or share your thoughts with me at @aksinghnet on Twitter. I’d love to hear from you. And, happy coding guys!

5 New Programming Languages to Learn in 2017

.no-js #ref-block-post-29857 .ref-block__thumbnail { background-image: url(“http://media02.hongkiat.com/thumbs/250×160/programming-language-to-learn-2017.jpg”); }

5 New Programming Languages to Learn in 2017

Being a developer has been a top career choice for a while, and it’s hard to imagine this…Read more

Source: Hongkiat

(1175 Posts)

Leave a Reply