Posted by The Modern Android Development Team
This year’s Google I/O brought lots of updates for Modern Android Development. Here are the top 3 things you should know:
#1: Lots of new Jetpack library releases!
In recent months, several Jetpack libraries reached stable, beta or were just launched in alpha. Here are some the highlights:
- Stable: CameraX, Hilt, Paging 3.0, ConstraintLayout, MotionLayout, Jetpack Compose (going stable in July)
- Beta: DataStore
- New libraries, now in alpha: Macrobenchmark, AppSearch and Google Shortcuts
#2: Inspectors in Android Studio
Debugging your application becomes easier with all the inspectors provided by Android Studio Arctic Fox: for background work, like understanding what’s the status of your WorkManager workers, use Background Task Inspector; for UI use Layout Inspector, for both Android Views and Compose; for database debugging use Database Inspector.
To see the inspectors in action, check out What’s new in Android development tools.
#3: New features in Kotlin
We keep improving Kotlin on Android at all levels, from tools to APIs, and giving you different ways to learn. Kotlin Symbol Processing (KSP), now in alpha, provides a simplified compiler plugin API that can run up to 2 times faster than KAPT. Together with JetBrains, we’re addressing performance issues in the IDE and we’re seeing up to 20x faster auto-import suggestions. We added
StateFlow support to DataBinding and new APIs for observing
Flows in the UI without DataBinding. To learn about all the improvements we’ve made for Kotlin, check out the State of Kotlin on Android talk:
You can find all of this year’s Google I/O talks covering Modern Android Development in this playlist:
Gurupriyan is a Software Engineer and a technology enthusiast, he’s been working on the field for the last 10 years. Currently focusing on mobile app development and IoT.