Android Studio 3.6 Canary 10 is now available in the Canary and Dev channels.
If you have Android Studio set to receive updates on the Canary or Dev channel, you can get the update by choosing Help > Check for Updates (Android Studio > Check for Updates on macOS). Otherwise, you can download it here.
Refactor menu option to enable Instant Apps support
You can now instant-enable your base module at any time after creating your app
project as follows:
- Open the Project panel by selecting View > Tool Windows > Project from the menu bar.
- Right-click on your base module, typically named ‘app’, and select Refactor > Enable Instant Apps Support.
- In the dialog that appears, select your base module from the dropdown menu.
- Click OK.
Note: The option to instant-enable your base app module from the Create New Project wizard has been removed.
Deobfuscate class and method bytecode in APK Analyzer
When inspecting DEX files, the APK Analyzer now supports deobfuscating class and method bytecode. To deobfuscate the bytecode, proceed as follows:- Select Build > Analyze APK from the menu bar.
- In the dialog that appears, navigate to the APK you want to inspect and select it.
- Click Open.
- In the APK Analyzer, select the DEX file you want to inspect.
- In the DEX file viewer, load the ProGuard mappings file for the APK you’re analyzing.
- Right-click on the class or method you want to inspect and select Show bytecode.
General fixes
This update includes fixes for the following public issues:Core IDE
- Issue #139371784: Gradle sync should use --stacktrace by default to assist in diagnosing failures which occur during sync
- Issue #130738995: Allow disabling the automatic adding of the google repository to build.gradle
Gradle
- Issue #138042761: Remove pointless log from lint task
Gradle Sync
- Issue #139481725: Gradle Sync fails with org.jetbrains.kotlin.psi.KtDotQualifiedExpression cannot be cast to org.jetbrains.kotlin.psi.KtStringTemplateExpression
Lint
- Issue #138832286: AGP 3.5.0-rc02 and 3.6.0-alpha05: Lint doesn't report issues in the Kotlin source set
- Issue #139769778: Can not resolve symbol for app:constraint_referenced_ids attribute
- Issue #139822932: VisibleForTesting annotation not linted properly if it uses package private scope as the 'otherwise'
- Issue #139515660: margin(Horizontal|Vertical) and padding(Horizontal|Vertical) are detected by UnusedAttribute even though they're backported
Templates
For information on new features and changes in all preview builds of Android Studio 3.6, see the Android Studio Preview release notes. For details of bugs fixed in each preview release, see previous entries on this blog.- Issue #123677458: Creating a new project should explicitly set project name in settings.gradle via rootProject.name = "..."
View Binding
- Issue #137854701: Respect tools:viewBindingIgnore layout attribute
Databinding
- Issue #133390436: Binding adapter not used when setting propert on an <include> tag
We greatly appreciate your bug reports, which help us to make Android Studio better. If you encounter a problem, let us know by reporting a bug. Note that you can also vote for an existing issue to indicate that you are also affected by it.