Android Studio 2021.3.1 Closed Issues

Android Studio Dolphin Beta 1 (2021.3.1.10)

Released together with:
  • Android Gradle Plugin 7.3.0-beta01
Fixed Issues
Android Gradle Plugin
Add desugar methods to lint model
Dexer (D8)
Art / Dalvik VMs prior to version 8 does not support the fix for JDK-8272564
Emulator
Option to disable clipboard sharing is gone in Android Studio Bumblebee, can't turn it off
Lint
Add --offline flag to lint
Shrinker (R8)
R8 3.3.28 corrupts reachable methods by putting "throw NPE" in method body.
Constructor of kept class throws NPE in Proguard compatibility mode

Android Studio Dolphin Canary 9 (2021.3.1.9)

Released together with:
  • Android Gradle Plugin 7.3.0-alpha09
Fixed Issues
Android Gradle Plugin
"Similar" system images when failing to get the requested one are _not_ similar
Automated Test Devices: Not downloading the right system image? Or running the wrong one?
"We recommend using a newer Android Gradle plugin" when there isn't a newer one
Gradle Managed Device should offer compatible device type when one isn't found
kotlin-android-extensions plugin breaks when `package` attribute missing from AndroidManifest.xml
Device type/image type mismatch error is not user friendly
Gradle managed device location on disk
Build Analyzer
Build analyzer's jetifier analysis says androidx databinding requires jetifier
Device Manager
"Stop device" menu has disappeared from Device Manager context menu.
Emulator
tool windows emulator error
Gradle
Lint UnusedResources False Positive with Import Alias
Import/Sync
Cannot sync project with KMP module in Chipmunk with MPSS
Kotlin 1.6.20 breaks KMP module depedencies
Non-actionable "LicenseNotAcceptedException"?
Module from composite build not imported in IDE
Logcat
Logcat disconnected from device
Navigation
Including navigation graph from different aar module breaks generating AndroidManifest.xml intent filters for deep links
Resources
Bug: choosing to go to "implementation" of a resource doesn't go anywhere
SDK Manager
SDK update does not work if /tmp is a symlink
SDK Manager should stop spamming log info to stdout

Android Studio Dolphin Canary 8 (2021.3.1.8)

Released together with:
  • Android Gradle Plugin 7.3.0-alpha08
Fixed Issues
APK Viewer
APK Analyzer should not say 'successfully loaded' if there were problems
AVD Manager
avdmanager asks "Do you wish to create a custom hardware profile?" even if --silent flag was passed
It is possible to setup Android TV AVD with a portrait orientation
Android Studio 2.0: editing a Virtual Device reverts custom skin selection
AVD does not show TV landscape layout correctly in AVD selection dialog
2.7" QVGA device shows 'ldpi' in device list instead of 'mdpi', 33% size error between design and test
Android studio doesn't support emulator density of 200dpi
Download links are hidden when selecting a system image, if window is too narrow
Android Gradle Plugin
AGP 7.1.1 Depends on Vulnerable Netty Version
Duplicate class issues reported by R8
AGP 7.1.1 does not generate RenderScript classes with disabled resource processing
Implement api/annotationProcessor/implementation resolutionStrategy for variant derived configurations
MergeSourceSetFolders launches too many worker actions
Gradle Managed Virtual Devices failing in CI (GitHub Actions)
issues related with android.defaultConfig.ndk.debugSymbolLevel
'debug' build type has default signing key, others do not
STRING_TOO_LARGE should fail build process
Code Editor
SQLite syntax highlight issue - "SELECT" can't be followed by "REPLACE"
Autocomplete id in layout editor fills field with incorrect String
Unresolved class name in proguard rules
Device Manager
Retain emulator ordering in AVD Manager
Device Manager shows wrong path in error message when AVD was renamed inside AS
Android Studio Hangs when deleting a virtual device
IllegalArgumentException in SkinLayoutDefinition.parseFile
Editing
Spurious syntax errors in AIDL files
Emulator
Android Studio hosted emulator: AZERTY keyboard compatibility for the Virtual Scene Navigation
Firebase
Firebase assistant doesn't load
First Launch
IOException in WindowsPerformanceHintsChecker
Gradle Files Editor
Warning about Version catalog should be more clear
Import/Sync
Cannot sync project with KMP module in Chipmunk with MPSS
Syncing with Gradle files fails with AGP 7.3.0-alpha01 in Chipmunk Studio
Installer
Android Studio small bug
Chipmunk Beta 1: Setup wizard doesn't calculate download size correctly
Lint
Lint setup is broken in source-set-per-module scenario
NewApi check doesn't handle new inherited interfaces case
[Lint] "Recycle" detector incorrectly flags animations as not being started
Lint Integration
AndroidLintAnalysisTask causes cache miss due to timestamp difference in `lint.jar`
Logcat
Logcat autoscrolls to the end
Clearing logcat buffer breaks logcat
Logcat stops working after closing it and then opening it again
Motion Editor
Animation inspector buttons shown as ">>" (overflow) when system fonts are larger
New Code/Templates
Android Studio new project wizard still using deprecated function "onActivityCreated" for "Fragment + ViewModel"
New C++ project build file has duplicate externalNativeBuild block
Resources
Unordered list in Image Asset > Confirm Icon Path > Res Directory
Bug: choosing to go to "implementation" of a resource doesn't go anywhere
XML editor doesn't warn when using apostrophe (or even ') without escaping with backslash which leads to Gradle failure
Run
Run With Clear Data
Running Tests
Unit tests results are not displayed in Dolphin
Addd more test coverage for Unit tests
Instrumented tests fail with "Project 'X' not found in root project 'X'."
SDK Manager
sdkmanager double dependencies issue
Every AS update = new unsolved bugs :|
SDK update does not work if /tmp is a symlink
AVDManager - "Error: Package path is not valid. Valid system image paths are:ository..."
AGP downloads SDK Tools package if only newer command line tools package is installed
SDK Manager not in Tools menu, SDK licenses not accepted, cannot continue
Testing
GMD test failed due device provisioning error on Windows

Android Studio Dolphin Canary 7 (2021.3.1.7)

Released together with:
  • Android Gradle Plugin 7.3.0-alpha07
Fixed Issues
Android Gradle Plugin
Add workers to R8
Add desugar methods to lint model
Import/Sync
"Gradle build model" Load Issue on IDE
Lint
Lint IconMissingDensityFolder message uses absolute path in lint-baseline.xml
Move VersionChecks into API package to open up visibility
Lint's NewApi checks don't handle `when` statements in Kotlin

Android Studio Dolphin Canary 6 (2021.3.1.6)

Released together with:
  • Android Gradle Plugin 7.3.0-alpha06
Fixed Issues
Android Gradle Plugin
Critical Vulnerabilities in org.bouncycastle:bcprov-jdk15on:1.56
Remove baseline file input for AndroidLintAnalysisTask
Automated Test Devices: Not downloading the right system image? Or running the wrong one?
Stop including lint rule jars from .android/lint in AGP 7.2
Add desugar methods to lint model
Benchmark
Android Studio Microbenchmark template fails to build
C++ Build
externalNativeBuildClean runs preBuild also when using AGP 4.0.0
Find Usages
Go to declaration doesn't work for @animator/foo (possibly anything under animated-vector)
Macrobenchmark
Macrobenchmark template no .gitignore
ExampleStartupBenchmark documentation refers to wrong attribute
Macrobenchmark template matchingFallbacks + profileable
Macrobenchmark template wrong minSdk
ExampleStartupBenchmark uses non-existing CompilationMode.SpeedProfile

Android Studio Dolphin Canary 5 (2021.3.1.5)

Released together with:
  • Android Gradle Plugin 7.3.0-alpha05
Fixed Issues
Android Gradle Plugin
On device tests fail silently when tests aren't able to run
Android studio 2021.1.1 beta5 . Gradle sync fails with "Unable to load class 'com.android.build.api.extension.AndroidComponentsExtension'."
AGP 7.2.0-alpha05 breaks builds that use the Navigation Safe Args plugin
Vague error for invalid values.xml file
Compose Editing
Import Auto-completion does type completion instead
Emulator
UnsatisfiedLinkError: Unable to find image_converter.dll
Layout Editor
BUG: Additional wrong spaces on layout. Tapping in layout design on any view - causing changing format in layout text
Lint
Bug: a string template isn't considered a string when used as parameter for getString function
Navigation
Safe Args used deprecated getApplicationIdTextResource with AGP 4.1+
SafeArgs 2.4.0-rc01 and AGP 7.1.0-rc01 incompatible
Network Inspector
TrackedHttpURLConnection.getHeaderField crashes with NullPointerException
I am constantly getting this error when the debugger is connected on the latest version of Android Studio.
New Network inspector crashes after Bumblebee update
Resources
Unexpected 'The resource name must begin with a character' error when a string resource starts with a '@string/string_name' reference and is followed by whitespace and any other text
Running Tests
Unit tests results are not displayed in Dolphin

Android Studio Dolphin Canary 4 (2021.3.1.4)

Released together with:
  • Android Gradle Plugin 7.3.0-alpha04
Fixed Issues
Android Gradle Plugin
Add support for preview minCompileSdk libraries
"Java file outside of source root" when using manifest.srcFile
Collision during device setup if more than one sub-project declares the same device
Improve readability of CheckAarMetadataTask error messages
AGP should not use ProjectComponentIdentifier.projectPath without ProjectComponentIdentifier.build
`Property 'layoutInfoDirectory' doesn't have a configured value` after upgrading AGP from 7.0.4
Implement api/annotationProcessor/implementation resolutionStrategy for variant derived configurations
AGP looks for ANDROID_SDK_ROOT, not ANDROID_HOME
Assistant Window
Typo in firebase-tool
Emulator
UnsatisfiedLinkError: Unable to find image_converter.dll
Layout Inspector
App inspection & layout inspector & db inspector not working
Lint
@TargetApi annotations are enforced on callers
Lint typealias test mode creates invalid typealiases with generics
Android lint NewApi regression
Memory
Symbolication is broken for Memory Profiler
Network Inspector
Network Inspector in BumbleBee doesn't show the api response in readable format
New Code/Templates
Bug of error message: Argument for @NotNull parameter 'text2' of com/intellij/diff/comparison/ComparisonManagerImpl.isEquals must not be null
Running Tests
Unit tests results are not displayed in Dolphin

Android Studio Dolphin Canary 3 (2021.3.1.3)

Released together with:
  • Android Gradle Plugin 7.3.0-alpha03
Fixed Issues
Android Gradle Plugin
Ensure empty dirs from local sources and runtime classpath are considered for Java resources
lateinit property projectProvider has not been initialized
AAB (resources.pb) intermittently bloated with comments from attrs.xml?
AGP ignores package name set in androidTest/AndroidManifest.xml
Assistant Window
Change "Assistant" tool window title to include a colon
Compose Preview
Empty Compose Preview Panel when Composable accesses Build.VERSION.SDK_INT
Layout Editor
Absolute positions not removed for referenced views
Studio freezes on build.
Misc.xml contains local path
In the Activity Design editor, mouse wheel scrolling is smaller than expected
Bug: showing RadioButton in items of RecyclerView, it puts text to them even though they weren't set
Bug: no preview for customized Preferences
Confusing warning on Preference's entryValues
Lint
TypographyQuotes lint check raises issue for quotes used by html tag attributes
Inconsistency between Lint and AGP suggestions on how to package native libs
AndroidLintAnalysisTask IllegalArgumentException warning because unsupported class files in META-INF
Memory
Symbolication is broken for Memory Profiler
Navigation Editor
Navigating to safearg shows navigation editor but not the arg
Resource Manager
Cannot create icons
Testing
AGP 7.2.0-alpha06, espresso tests, colon in produced artifact name

Android Studio Dolphin Canary 2 (2021.3.1.2)

Released together with:
  • Android Gradle Plugin 7.3.0-alpha02
Fixed Issues
Android Gradle Plugin
ASM-based transform API tries to compute frames for Java 6 bytecode when containing JSR/RET instructions
Android studio 2021.1.1 beta5 . Gradle sync fails with "Unable to load class 'com.android.build.api.extension.AndroidComponentsExtension'."
OutOfMemoryError thrown from ResolutionResultUtils.getPathFromRoot(ResolutionResultUtils.kt:55)
Add a test for AGP&KMP publishing
Link for Studio and AGP compatibility options leads to corp site
Collision during device setup if more than one sub-project declares the same device
Managed devices test result merging should not output help messages.
resources.txt diagnostics file is not created after running shrinkReleaseRes
JarFlinger should provide a mode which doesn't ignore empty directories
Android Studio
Add lint quickfix support for lint warnings/errors on import statements
C++ Build
ModelCache.safeGet(androidProjectResult.androidProject::getNdkVersion, "") must not be null
CPU
Profile sampling corrupting benchmark measurement
Compose Preview
Usage of @PreviewParameter not displaying composable in preview window
Compose Previews fail to find resources from other modules when non-transitive R classes is enabled
Data Binding
Loosing bindings
Databinding
Collect StateFlow using addRepeatingJob/flowWithLifecycle
Design Tools
AS 2.3: WebP Conversion Radio Button Captions
9-patch image preview on dark theme display light text on light background
Device Manager
Can't run Android Device Manager
Import/Sync
"variant must not be null" when importing Kotlin MPP project
Layout Editor
layout editor mode hotkeys enabled in files other than layouts
Studio freezes on build.
Android studio preference editor not working properly
Layout Preview does not find all project themes
Layout Inspector
Inspector shows content after "stop" is selected
Unable to copy attribute values in layout inspector
Lint
Suspicious indentation lint check false positive in kotlinx-coroutines-core
Lint: Location computed by LintCliXmlParser's getValueLocation is incorrect
List custom checks executed in lint-report.html
Add @DeprecatedSdkVersion annotation for indicating a method is deprecated after a certain minimum API level
ObsoleteSdkInt should check RequiresApi, TargetApi, and SdkSuppress annotations
@ReturnThis annotation and Lint enforcement
[Android Lint Checks] Kotlin @OpenForTesting annotation & lint check
ObsoleteSdkInt check should flag @TargetApi usage
ObsoleteSdkInt check should include tools:targetApi
Lint reports UnknownIssueId when using custom issue ids in lint config.
Running Tests
Cannot use instrumentation arguments containing "-e"
Respect a custom instrumentation params specified in Android Studio run configuration (UTP)
Upgrade Assistant
"Cannot find AGP version in build files". What does that mean? And HOW can someone fix it?

Android Studio Dolphin Canary 1 (2021.3.1.1)

Released together with:
  • Android Gradle Plugin 7.3.0-alpha01
Fixed Issues
Android Gradle Plugin
Android Gradle Plugin 7.1.0-rc01 fails to perform ASM bytecode transformation during unit tests
Android Gradle Plugin: Fix compile dependency leak by ConstrainHandler.
SigningConfig for MergedFlavor (buildType+flavor) on Gradle 7.x
Some new DSL blocks can't be used from Groovy DSL in Android Gradle Plugin 7.0.0
AGP 7.1 new publishing API: created javadoc jar does not get signed
Code Editor
Bug in Android Studio Live Templates - the className() expression is not resolving the class name
Import/Sync
Log spam: "INFO - testKnownPluginVersionProvider - 'gradle' plugin missing from the offline Maven repo, will use default 7.2.0-alpha05 "
Show JDK versions and file locations in menu When Gradle jdk location is not set.
Running Tests
Unable to run AndroidTest from the gutter menu while non-Android run configuration is selected
Shrinker (R8)
Virtual class merging issue on jar from b/211811489
[R8 3.2.24] NPE in MemberRebindingAnalysis
Sealed classes are not supported
R8 renames string literals
Broken Kotlin compilation with inline fun + default args + crossinline
Bug: getting error of "Compilation of classes...requires its nest mates ...(unavailable) to be on program or class path"