Status Update
Comments
al...@google.com <al...@google.com> #2
al...@google.com <al...@google.com> #3
em...@google.com <em...@google.com>
je...@google.com <je...@google.com> #4
Hi Marco, thank you for the report. We will take a look.
al...@google.com <al...@google.com> #5
al...@google.com <al...@google.com> #6
The beta 1 sdk_gphone build won't automatically enable the change even the screen is sw600dp or greater. Future betas and the final release candidate will automatically enable the change if the screen is sw600dp or greater.
You can enable the forced change manually in one of the following two ways:
- With
adb shell
: Rundevice_config put window_manager ignore_activity_orientation_request true
to enable the change for all apps. - With Settings: enter "app info" -> "aspect ratio" -> "full screen" to enable the change for one app.
je...@google.com <je...@google.com> #7
I tried with the Pixel Tablet emulator with build number `BP22.250124.008` and the `UNIVERSAL_RESIZABLE_BY_DEFAULT` flag enabled and now it works as expected.
je...@google.com <je...@google.com> #8
Hakan, I fixed the initial issue Alan reported, can you have a look at the KMP related problems ? thanks.
hm...@google.com <hm...@google.com> #9
KMP uses the same Variant object in this case so your fix is sufficient for both.
an...@google.com <an...@google.com> #10
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 Meerkat Feature Drop | 2024.3.2 Canary 4
- Android Gradle Plugin 8.10.0-alpha04
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
I'm setting up a custom task that adds a generated Java source directory, but my approach (which may be entirely wrong, but this is the best I've got based on the documentation available) leads to a confusing error when a variant does not have Java sources (e.g. a KMP project variant).
This happens because
variant.sources
is aAnalyticsEnabledSources
wrapping aSources
where thejava
property is null. When we attempt to create an analytics-enabled wrapper around that null value, we crash with:Which makes sense because the here .
delegate
parameter isnull
. See theAnalyticsEnabledFlat.kt
classI think what we probably need instead is a null check and a nullable return type here in
AnalyticsEnabledSources
: