Fixed
Status Update
Comments
mi...@leonhardllc.com <mi...@leonhardllc.com> #2
This upgrade assistant change will add android.defaults.buildfeatures.resvalues=true
to the gradle.properties
file in AGP 9.0.0, and there will be a separate refactoring option to move the flag (when necessary) to the build files (DSL).
vi...@google.com <vi...@google.com> #3
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Ladybug Feature Drop | 2024.2.2 Canary 6
- Android Gradle Plugin 8.8.0-alpha06
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
AI-191.8026.42.35.5900203, JRE 1.8.0_202-release-1483-b49-5587405x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.15, screens 1440x900; Retina
AS: 3.5.1; Android Gradle Plugin: (plugin information not found); Gradle: (gradle version information not found); NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
Steps to Reproduce Bug:
1. Open Android Studio.
2. Click the menu Tools / AVD Manager.
3. Click the button "+ Create Virtual Device..."
4. Select the last device in the list: 2.7" QVGA. Click Next.
5. Click the "x86 Images" tab.
6. Select Jelly Bean, 16, x86, Android 4.1. Click Next. Click Finish.
7. The newly created virtual device is selected. Look at the text in the Resolution column.
Expected Behavior:
The resolution should be listed as "240 x 320: mdpi". On mdpi screens, 1px = 1dp. I confirmed this by taking a screenshot of our app and measuring the width of a 200dp-wide widget and confirming that it is 200px wide. The emulated screen is definitely mdpi.
Observed Behavior:
The resolution is listed as "240 x 320: ldpi".
This is important because we need to know the size of the screen in DP to be able to design the interface correctly. Assuming the screen is ldpi will lead to screen widgets that are 33% too big for the screen. Since the whole point of designing and testing on small screens is to make the widgets fit and look good, an error of 33% is unacceptable.