Android Studio 2022.1.1 Closed Issues

Stay organized with collections Save and categorize content based on your preferences.

Android Studio Electric Eel Beta 1 (2022.1.1.11)

Released together with:
  • Android Gradle Plugin 7.4.0-beta01
Fixed Issues
Android Gradle Plugin
Component.sources does not give access to the "resources" files
Flaky build failure in MergeResources task
SourceDirectories.addGeneratedSourceDirectory does not wire correctly for android Resources
kotlin-android-extensions plugin breaks when `package` attribute missing from AndroidManifest.xml
Android Gradle Plugin should not use the deprecated GUtil.toWords(string) function
Android Gradle Plugin should not use the deprecated ConfigureUtil.configure(closure, target) function
New "unknown enum constant" from javac on AGP 7.4.0-alpha09
There should be a sync error when namespace == testNamespace
AGP duplicates res/ folders at top-level of generated AARs
JavaPluginConvention and HasConvention is deprecated
Wrong and inconsistent file location for new transform API
Update AGP tests to use KGP 1.7.20-Beta
Gradle 7.4 fails (could not create instance of AnalyticsService)
API
Variant API: In AGP 7.1+, updates to new variant objects are not forwarded to old variant objects
Build Analyzer
Gradle Build keeps running indefinitely after successful build
C++ Editor
External C++ .h cannot be located in Android project view
Code Editor
Disable wildcard imports by default for Kotlin projects in Android Studio
Deployment
Project leak via AndroidProcessHandler/SingleDeviceAndroidProcessMonitor
Device Manager
Device Manager shows Auto images for phone selection
Dexer (D8)
Provide precise warning for the need to turn on lamdba desugaring
Emulator
Android TV Hardware profile shows incorrect device size
Import/Sync
Sync fails with "Cannot find a variant matching build type and product flavors"
Cannot sync project with KMP module in Chipmunk with MPSS
Kotlin Multiplatform: Unresolved reference
Avoid querying for KMP models in order to determine if a module is a KMP one
//tools/adt/idea/project-system-gradle:intellij.android.projectSystem.gradle.tests_tests fails on JDK17
Kotlin Multiplatform project fails to import in AS 2022.1.1 Canary 10
Please sort build variants alphabetically
Missing flavor dimensions crashes sync
Lint
Backticks appearing when applying annotation autofix with use-site target
LintFixPerformer's shortenNames incorrectly shortening names with same prefix
Fix flaking lintAnalyze tasks
Lint Integration
AGP 7.0.0 Alpha 14 Lint RAM Usage Unbounded
Memory
Memory Profile tool showing 0.2 GB instead of 150 MB
Project Structure
misleading dependency update suggestion
Project View
Project tool window -> Android view: Class visibility icons not showing
build.gradle and proguard files mixed in Project View in Electric Eel Canary 9
"Write-unsafe context!" exception in GradleModuleModel.getBuildFile
Release Bundle/APKs
AGP: Cannot publish a specific build type in a multi-variant setup
SDK Manager
writeInstallerMetadata does not log the IOException when failing to create a directory
Upgrade Assistant
AGP Upgrade assistant should handle projects using android.disableAutomaticComponentCreation

Android Studio Electric Eel Canary 10 (2022.1.1.10)

Released together with:
  • Android Gradle Plugin 7.4.0-alpha10
Fixed Issues
Android Gradle Plugin
Component.sources does not give access to the "resources" files
SourceDirectories.addGeneratedSourceDirectory does not wire correctly for android Resources
AGP ignores jniLibs overrides from 7.3.0-alpha08
kotlin-android-extensions plugin breaks when `package` attribute missing from AndroidManifest.xml
java.io.IOException: Couldn't delete res.jar
There should be a sync error when namespace == testNamespace
AGP duplicates res/ folders at top-level of generated AARs
Compose with KMM - Backend Internal error: Exception during IR lowering
App Quality Insights
Please stop showing the Crashlytics banner when Studio starts up
Build Analyzer
Gradle Build keeps running indefinitely after successful build
C++ Build
stable output location for compile_commands.json
Data Binding
LayoutBindingModuleCaches leak via message bus
Dexer (D8)
Provide precise warning for the need to turn on lamdba desugaring
Import/Sync
Sync fails with "Cannot find a variant matching build type and product flavors"
Kotlin Multiplatform: Unresolved reference
Code Inspection doesn't seem to work.
Please sort build variants alphabetically
Missing flavor dimensions crashes sync
Infrastructure
prepareKotlinBuildScriptModel failing with prefab dir not readable
Lint
Backticks appearing when applying annotation autofix with use-site target
LintFixPerformer's shortenNames incorrectly shortening names with same prefix
Fix flaking lintAnalyze tasks
Lint Integration
AGP 7.0.0 Alpha 14 Lint RAM Usage Unbounded
AndroidLintAnalysisTask has cache misses due to relative path normalization
Project Structure
misleading dependency update suggestion
Project View
Project tool window -> Android view: Class visibility icons not showing
build.gradle and proguard files mixed in Project View in Electric Eel Canary 9
"Write-unsafe context!" exception in GradleModuleModel.getBuildFile
Release Bundle/APKs
AGP: Cannot publish a specific build type in a multi-variant setup
Running Tests
HTML test report for androidTest see the skipped test cases as success in success rate
SDK Manager
writeInstallerMetadata does not log the IOException when failing to create a directory

Android Studio Electric Eel Canary 9 (2022.1.1.9)

Released together with:
  • Android Gradle Plugin 7.4.0-alpha09
Fixed Issues
Android Gradle Plugin
Target SDK handling changes break robolectric tests
ProcessLibraryManifest does not correctly handle deletions of library manifest files
AGP ignores jniLibs overrides from 7.3.0-alpha08
Allow running R8 out of process
Error syncing gradle
Accessing variant sources in onVariant makes standard android sources, such as buildconfig disappear
"Make Project" uses wrong version of Gradle
AGP 7.1-beta04 has a missing com.android.build.api.dsl.Lint API and/or misleading kdoc
Upgrade to json-simple:1.1.1
Electric Eel Canary 3+ can't run JVM project using a KMP library; Gradle CLI works
Compose Preview
androidx.media3.exoplayer.offline.Download causes no preview
Recursive call of PreviewParameterProvider causes NoSuchMethodException or empty preview without error
Deployment
Deploying Compose Preview to device requires two gradle builds
Design Tools
Layout validation: "androidx.viewpager2.widget.ViewPager2 is partially hidden in layout"
Import/Sync
Make applicationIds for all variants available at sync time
KTIJ-22303: Mpp and Kotlin model cacheOriginIdentifier's do not match
Editor of unit test source fails to resolve string resource declared in another module
Sync cancelled/crashes at data importers phase is never reported to the main sync listener
Getting IDEA Project structure dialog
KMP with HMPP common code not resolving with Android-only target
Cryptic JDK location warning suggesting a problem but not defining it
Lint
Wrong lint warning for `@Parcelize` annotation on sealed class.
`./gradlew lintDebug` not always printing specific violations
Lint's ignoreWarnings flag (-w) ignores warnings but not informational severity
Lint "AutoCloseable used without 'try'-with-resources" and "This TypedArray should be recycled after use with #recycle()" conflict
Lint initializes UAST from reporting task which should be invalid
Android Lint Report tasks are never up-to-date
Lint Integration
AndroidLintAnalysisTask has cache misses due to relative path normalization
Logcat
[LogcatV2] populate "level:" options earlier
Electric Eel c4: "Unable to save settings"
Project View
Android Studio shows build.gradle twice when using symlink
Run
Misleading exception message

Android Studio Electric Eel Canary 8 (2022.1.1.8)

Released together with:
  • Android Gradle Plugin 7.4.0-alpha08
Fixed Issues
C++ Build
Cannot find (fork) CMAKE after upgrading AGP from 4.1.3 to 4.2.0 / 7.2.1
Gradle Files Editor
Warning on too low buildToolsVersion isn't accurate
Lint
Android lint permission check flakily crashing

Android Studio Electric Eel Canary 7 (2022.1.1.7)

Released together with:
  • Android Gradle Plugin 7.4.0-alpha07
Fixed Issues
Android Gradle Plugin
No ability to add "STORED" zip entries to apk after AGP introduced zipflinger in 4.1.0
Compose Preview
Compose Previews in app modules fail to find resources in multi-module projects
Lint
Lint crashes on empty kt files
Resources
EEL Canary 5 - custom views unable to instantiate and display in xml editor
Testing
Fix Unit tests execution fr directories in EE

Android Studio Electric Eel Canary 6 (2022.1.1.6)

Released together with:
  • Android Gradle Plugin 7.4.0-alpha06
Fixed Issues
Android Gradle Plugin
Wrong file name in output file for transforming SingleArtifact.AAR
JdkImageInput should be less sensitive to inconsequential changes
Dynamic feature conflicts with `android.uniquePackageNames`
Lint
Lint UnusedIds incorrectly fails when using ViewBinding as suggested by official docs

Android Studio Electric Eel Canary 5 (2022.1.1.5)

Released together with:
  • Android Gradle Plugin 7.4.0-alpha05
Fixed Issues
Android Gradle Plugin
Gradle version check inside of AGP can be expensive
Android Gradle plugin should use Gradle toolchain configured via extension for Java compilation tasks
AGP 7.2 com.android.test module unable to access com.android.app module's test fixture classes
Lint crashing in Kotlin 1.7.0-RC2 build
Import/Sync
Build problem with multiple product flavours in new version
ProjectStructureDumper does not record exported dependency flag

Android Studio Electric Eel Canary 4 (2022.1.1.4)

Released together with:
  • Android Gradle Plugin 7.4.0-alpha04
Fixed Issues
Android Gradle Plugin
AGP 7.x test listener fails on MacOS since 7.0.0-beta04 (inclusive)
Remove usage of kotlin reflect in cxx code
Use target 11 when compiling AGP
AGP 7.2.0-rc01 :buildSrc:generatePrecompiledScriptPluginAccessors - shadow/bundletool/com/android/prefs/AndroidLocation$AndroidLocationException
App Development
Translations Editor not scrollable
Code Analysis
Lint does not run on the fly in the editor
Compose Preview
ComposePreviewRepresentations leak through message bus connections in FastPreviewManager
Design Tools
Image Asset ignores background color for icon
Asset Studio does not recreate .png files for Image Assets
Device Manager
The AVD Manager picks the wrong system image
Dexer (D8)
Explicitly enable missing API modeling in D8/R8 from AGP
First Launch
Data Sharing dialog pop up on each launch
Import/Sync
Failed sync should not break Build | Make project
Stop blocking on MergedManifestManager.getSnapshot() in LaunchUtils
Migrate AndroidProjectTaskRunner to non-deprecated APis
IntelliJ
"version": "dev build" in product-info.json
Lint
ObsoleteSdkInt doesn't catch Build.VERSION.SDK_INT >= minSdkVersion
SystemPermissionTypo false positive on android.permission.WAKE_LOCK
Logcat
[Logcat V2] We need better support for values that include spaces
2GB used by 9000 DeviceImpl held by AndroidLogcatService
Logcat Format Settings Isn't Persisted
[Logcat V2] Not all keys come with the colon when using autocomplete
Release Bundle/APKs
Tasks invocation from Gradle tool window does not go through Android Studio infra unless at the top level
Resource Manager
Request: offer "convert to webp" for folder's context menu, and not just to files
Android Studio 4.1 RC3 doesn't retain position in Resource Manager when deleting resources
Resource Manager can't search the value of strings
Bug: Android Studio forgets how to view resources list as a grid
Android Asset Studio prefixes files with ic_
Vector asset studio needs button tooltip
Image Asset doesn't show resource directory sorted by asc
When adding an asset image, the flavor list is in random order.
Draw 9 Patch tool should be able to zoom out to below 100%
Help button for Save As .9.png dialog
Request: allow finding items in combobox by pressing on letters on the keyboard
While creating new app icon and have shared resource folder for multiple flavors the location of the importing icon cannot be changed
New Vector Asset Dialog label cut off
Asset Studio generates white background for images even when shape set to 'none'
batch import drawables ignores locale and region
Resource Manager: Keeps defaulting to another module besides my app module
Translations Editor
Translations Editor should write new entries at the correct position in the files

Android Studio Electric Eel Canary 3 (2022.1.1.3)

Released together with:
  • Android Gradle Plugin 7.4.0-alpha03
Fixed Issues
Android Gradle Plugin
processReleaseManifest: package found in source AndroidManifest.xml false negative
Remove check that forbids usages of distributionSha256Sum in wrapper properties file
AndroidGradlePlugin version 7.2 breaks transform API when used along with ASM API
Assistant Window
URL Assistant: The default implementation of method 'getFile' is deprecated, you need to override it
Emulator
AS Electric Eel Canary 2 - Error hitting "Finish" on device connection assistant does nothing
Import/Sync
Circular POM dependency breaks project import
"Duplicate content roots detected" with Android Gradle plugin 7.2.0
Lint
SystemPermissionTypo false positive on android.permission.WAKE_LOCK
Logcat
AS 2021.3.1 Canary 8 new logcat unable to copy text, missing option to search selected text in Google
New logcat not showing logs after the first 2 seconds
Release Bundle/APKs
Tasks invocation from Gradle tool window does not go through Android Studio infra unless at the top level
Resources
NPE in AarResourceRepositoryCache.createCachingData (AS Electric Eel)
Run
Devices option is not visible and unable to run the app even though app module is available.
Updater
Patcher on M1 does not work for EE c1 to EE c2
Upgrade Assistant
"Cannot find AGP version in build files". What does that mean? And HOW can someone fix it?

Android Studio Electric Eel Canary 1 (2022.1.1.2)

Released together with:
  • Android Gradle Plugin 7.4.0-alpha02
Fixed Issues
Import/Sync
AlreadyDisposedException occurred when sync
Lint
[Lint] Wrong Resource Type detector finds errors in valid code when code is across modules

Android Studio Electric Eel Canary 1 (2022.1.1.1)

Released together with:
  • Android Gradle Plugin 7.4.0-alpha01
Fixed Issues
Android Gradle Plugin
XML newlines mangled in release builds with splits
Add desugar methods to lint model
Build Variants
Build Variants window stuck when switching variant in the middle of sync/build
The build flavor is locked on the default ndk abi flavor, can't change it
AS cannot switch between build variants in case product flavors have non-overlapping native ABI sets
Variant switcher sometimes never finished
Switching variants with different ABIs is broken
Compose Editing
BridgeContext.getSystemService() violates contract by throwing rather than returning null for unrecognized services
Compose Preview
Interactive Preview stops working once I drag scrollview
Design Tools
Shape drawable stroke with width < 1.0 is only displayed in layout Design pane if preceded by a "0"
Display of HTML string in the designer does not match what is displayed on any device/emulator I have tried
Emulator
Option to disable clipboard sharing is gone in Android Studio Bumblebee, can't turn it off
Import/Sync
com.android.tools.idea.testing.AndroidGradleTestUtilsKt#verifySyncedSuccessfully does not catch missing dependencies
Switching variants while building never finishes
Android Studio does not support Gradle nesting Composite-Build
Android Support Plugin error messages need rewording
IntelliJ
MBP 15" 2018 Touch Bar menu is missed.
Layout Editor
android:theme attribute on ViewGroup is ignored
Preview rendering issue when using ?android/attr:[color].
Custom view fails to display in preview when loading font
Android Studio crashes
Layout Renderer Error
Bug: no preview for customized Preferences
Preview unequal to running app | ?attr not supported in fillColor of an XML (Vector Drawable)
Render Problem cause using CameraView
Lint
Add --offline flag to lint
InconsistentLayout does not respect baseline
Material
Dialogs don't appear in Preview
New Project Wizard
New Benchmark module wizard should select minSdk 23
Release Bundle/APKs
Bundletool: Intent filter elements are not merged properly between feature modules and base modules
Upgrade Assistant
AGP Upgrade Assistant never finishes