Paul Krill
Editor at Large

Android Studio 4.0 backs native UI toolkit

news
Oct 28, 20192 mins

Now available in a preview release, the Android Studio 4.0 ‘Canary’ upgrade works with the JetPack Compose UI toolkit and improves Java 8 support

number 4 on painted on brick wall four
Credit: Getty Images

Google has rolled out a preview of the Android Studio 4.0 IDE, with support for the Jetpack Compose toolkit for building native Android UIs.

Android Studio 4.0 “Canary” works hand in hand with Jetpack Compose, which leverages Kotlin APIs, reduces coding requirements to build native UIs, and automatically updates a UI when state changes. Now entering a developer preview phase, Jetpack Compose is accessible in Android Studio.

Android Studio 4.0 also brings support for some Java 8 APIs, with no requirement for a minimum API level for an app. Using the desugaring process, the DEX D8 compiler in Android Studio 3.x already provided substantial support for Java 8 features such as lambda expressions. With Android Studio 4.0, the desugaring engine was extended to Java language APIs. Developers now can include standard Java language APIs available only in recent releases of Android, such as java.util.streams, in apps that support older versions of Android.

Other new capabilities in Android Studio 4.0 include:

  • A visual design editor is included for the MotionLayout layout type, making it easier to build and preview animations.
  • Smart editor capabilities including syntax highlighting, error checking, and code completion are available when opening ProGuard rules files.
  • A fragment wizard and templates are accessible by clicking File > New > Fragment > Gallery or by clicking “Create new destination” in the Navigation editor.
  • Android live templates are included for Kotlin classes.
  • Support is offered for Kotlin DSL build script files (*.kts) via the Android Gradle plug-in.

Where to download Android Studio 4.0 Canary

You can download the Android Studio 4.0 Canary preview from developers.android.com.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author