Android Studio 4.1 beta, 4.2 Canary available
Along with the recently released Android 11 beta, Google has made a new version of Android Studio available to developers. Android Studio 4.1 Beta and Android Studio 4.2 Canary are here to help developers target Android 11 and its new set of APIs. You’ll find updates from Kotlin, Jetpack, and more.
Google says it has focused on a number of critical factors in Android Studio 4.1 Beta and 4.2 Canary Built – all because of requests from developers.
For starters, debugging is easier. Developers can debug wirelessly via ADB with Android 11. Google has also added Database Inspector and Dependency Injection tools. Device testing is better with the Android emulator, which is now hosted in the IDE. Developers can run tests side-by-side to see the results of a handful of devices simultaneously. The device manager is also a little touched up. Machine learning is easier. Developers can import their models for ML Kit and TensorFlow Lite directly in the IDE.
Overall, app creation and deployment should be faster. The processing of Kotlin symbols and caching of the Gradle task graph, in particular, should smooth the process. Developers can use the new build analyzer to diagnose where their application may be having code issues. An updated performance profiler User interface should boost gaming tooling. Google also updated the System Trace tool and added support for native memory profiling.
Google claims that 70% of the top 1,000 apps on Google Play now use Kotlin. With such a high adoption rate, Google has improved Kotlin coroutines, a language feature that makes simultaneous writing easier. API calls. Google says it “officially recommends” the Kotlin coroutines, which it has integrated into the three most used Jetpack libraries. Kotlin 1.4 allows faster code completion, allows more powerful type inference, offers Function interfaces and some quality of life improvements.
Jetpack continues to gain its wings. For example, Google worked with the Dagger team to create Hilt, a new wrapper that sits on top of Dagger. It is now the recommended dependency injection solution for Android. This particular tool is in alpha status. Google added a second Library to App Startup, which aims to help app and library developers improve app startup times. Other updates, such as Paging 3, are also on board.
Along with the Android Studio beta and Canary builds, Google is offering developers Jetpack Compose Developer Preview 2, which it says is packed with features that developers have requested. For example, developers will find new animations, tests, constraint layouts, adapter lists, and editable text. Theme and graphics, UI hardware components, window management, and input and gesture tools are also on board. These mainly target User interface elements.
Finally, there is a brand new Google Play console. Google says it has redesigned the console to help developers get the most out of their apps on the Play Store. The new features should help developers find, explore and understand Play Store features, find new advice on policy changes, better understand performance information, and empower all members of a development team to access the functionalities via the new user management options.
The beta version of Android 11 is available for all Pixels from Pixel 2 and above. The latest version of Android Studio can be downloaded through the Android Development Console.