Status Update
Comments
hu...@google.com <hu...@google.com> #2
i donnot understand why is the data the same?
ku...@gmail.com <ku...@gmail.com> #3
ga...@google.com <ga...@google.com> #4
What steps are needed to reproduce this issue? Frequency of occurrence?
Which Android build are you using? (e.g. AP4A.241205.013.A1)
Which device did you use to reproduce this issue?
Can you confirm if this issue is reproducible on a Pixel/Nexus device?
Please provide a sample project or apk to reproduce the issue. Also mention the steps to be followed for reproducing the issue with the given sample project or apk.
Android bug report (to be captured after reproducing the issue)
For steps to capture a bug report, please refer:
Alternate method
Navigate to “Developer options”, ensure “USB debugging” is enabled, then enable “Bug report shortcut”. Capture bug report by holding the power button and selecting the “Take bug report” option.
Note: Please upload the bug report and screenshot to google drive and share the folder to android-bugreport@google.com, then share the link here.
an...@gmail.com <an...@gmail.com> #5
Please provide the requested information to proceed further. Unfortunately the issue will be closed within 7 days if there is no further update.
au...@google.com <au...@google.com> #6
for example,we hava 100 users.
20 users returned the same location information, longitude is 121.474000 and latitude is 31.230001。
30 users returned the same location information, longitude is 122.474000 and latitude is 32.230001。
15 users returned the same location information, longitude is 120.474000 and latitude is 30.230001。
as for Android build,all versions have it.
I dont reprodouce this issue.
what may be the cause of this issue?please
an...@gmail.com <an...@gmail.com> #7
We have shared this with our product and engineering team and will update this issue with more information as it becomes available.
au...@google.com <au...@google.com> #8
Thanks for reporting this issue.
COARSE_LOCATION typically takes location information from the nearby cell tower. If many users are near the same cell tower, each of those users will be given the same position. Using a FINE position will give much more detailed information.
Also, in certain areas, for privacy reasons, a less-exact location will be given, and that less-exact location might be identical for many users. Again, a fine-location configuration will return more precise location data.
an...@gmail.com <an...@gmail.com> #9
We believe with reference to the above comment, your query has been answered, hence closing the bug. Please feel free to re-open the issue in the future if desired.
hm...@google.com <hm...@google.com> #10
sf...@netflix.com <sf...@netflix.com> #11
hm...@google.com <hm...@google.com> #12
This will be fixed in AGP 8.5.0-alpha04 and also will be backported to 8.4.0 RC2 and stable
sf...@netflix.com <sf...@netflix.com> #13
au...@google.com <au...@google.com> #14
It breaks on the consumer side, not the publishing side.
sf...@netflix.com <sf...@netflix.com> #15
So my consumers need to upgrade to AGP 8.4.0 if I want to ship 1.6.x+ in my pom, is that correct?
au...@google.com <au...@google.com> #16
That is correct. Older AGP versions with Kotlin Gradle Plugin applied did not set enough attributes when resolving the dependencies resulting in the wrong platform being picked up.
sf...@netflix.com <sf...@netflix.com> #17
au...@google.com <au...@google.com> #18
The only way for this to work again would be for compose to stop publishing -desktop platform of compose and we don't think we are willing to do that.
How much control do you have over your consumers? You could potentially create a Gradle plugin that tweaks AGP configurations in older versions.
sf...@netflix.com <sf...@netflix.com> #19
au...@google.com <au...@google.com> #20
Yes KGP should just work.
ju...@outsystems.com <ju...@outsystems.com> #21
So is people expected to use Android Studio Jellyfish, which is in beta, to fix the issue?
ju...@outsystems.com <ju...@outsystems.com> #22
hm...@google.com <hm...@google.com> #23
Indeed, 8.3 is the latest stable version at this point. 8.4 (and the corresponding IDE Jellyfish) is still in beta stage as you mentioned. The fix in AGP will go out in 8.4 RC2 (it missed the boat for RC1) and subsequently stable.
an...@gmail.com <an...@gmail.com> #24
js...@google.com <js...@google.com> #25
As
KotlinPlatformType.setupAttributesMatchingStrategy(project.dependencies.attributesSchema)
androidComponents.onVariants { variant ->
variant.components
.flatMap { listOfNotNull(it.runtimeConfiguration, it.compileConfiguration) }
.forEach { configuration ->
configuration.attributes.apply {
attribute(KotlinPlatformType.attribute, KotlinPlatformType.androidJvm)
}
}
}
Gradle's variant resolution is unfortunately very difficult to understand, but essentially this tells gradle to prefer the android artifacts whenever they're available.
ho...@netflix.com <ho...@netflix.com> #26
In essence, asking consumers to upgrade to AGP 8.4 is still a workaround, not a fix.
au...@google.com <au...@google.com> #27
artifacts compatible with ancient versions of AGP other than stop
publishing compose desktop artifacts.
On Thu, Apr 4, 2024, 5:01 PM hokanla <buganizer-system@google.com> wrote:
an...@gmail.com <an...@gmail.com> #28
if I was using androidx directly by myself I would not be complaining too much as there are some ways around it. but since I provide a library that customers use, and some of those customers are React-native, and Ionic (similar to Unity mentioned above) i will have to permanently add this instruction and they will have to implement an extra set of code in their app just to make my library work with their project. It is probably unexpected that such dependency would come from a medium version bump if that makes sense.
Again I'm not sure if there is a better way around it, probably there isnt aside from getting AGP up to that. its just not the reality for most of production projects which tends to lag behind, particularly if we talk about xplatform projects, since people might not even know what gradle is
hm...@google.com <hm...@google.com> #29
As AGP we can't do much about this fact that people can't upgrade to the latest version. Essentially the issue stems from a discrepancy in the way KGP publishes multiplatform libraries and the way AGP consumes them.
This problem is now fixed and in AGP 8.4 RC2 (and 8.5 canary 4).
From KGP side the problem is also fixed - please refer to
Additionally, if you are a library developer and want to target android only you could consider not depending on androidx.compose.runtime:runtime (which exposes -android and -desktop variants) but directly depend on the androidx.compose.runtime:runtime-android (
au...@google.com <au...@google.com> #30
Additionally, if you are a library developer and want to target android only you could consider not depending on androidx.compose.runtime:runtime (which exposes -android and -desktop variants) but directly depend on the androidx.compose.runtime:runtime-android (
https://maven.google.com/web/index.html?#androidx.compose.runtime:runtime-android ) artifact - I think this is should work - feel free to correct me if not.
it does not really work that way as each -android variant will pull in root non-android ones.
an...@gmail.com <an...@gmail.com> #31
so...@google.com <so...@google.com> #32
A postmortem task was automatically filed as a child item to this bug.
an...@google.com <an...@google.com> #33
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 Jellyfish | 2023.3.1
- Android Gradle Plugin 8.4.0
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!
[Deleted User] <[Deleted User]> #34
Help
[Deleted User] <[Deleted User]> #35
Help
Description
When upgrading Compose from 1.5 -> 1.6, the Application stops working and immediately crashes with:
```
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/compose/ui/platform/ComposeView;
```
Issue repro:
Build Scan:
The build scan shows that after upgrading to Compose 1.6, the app starts being packaged with `desktop` compose artifacts rather than `android` artifacts. This seems to happen because the application module does not apply the kotlin gradle plugin. Once I apply the kotlin plugin to the app module (even though that would be unnecessary) the issue goes away.
For projects that have a combination of Kotlin/Compose and Java modules, another issue is that the build resolves compose-desktop artifacts during the build process for any java module that happens to have a transient dependency on compose.
STEPS TO REPRODUCE:
1. Create a project with library module (compose + kotlin) and app module (pure Java)
2. Upgrade compose runtime dependencies to 1.6+
3. Observe crash on launch, android compose artifacts not included in APK
------------------
Studio Build: Jellyfish
Version of Gradle Plugin: 8.2.2
Version of Gradle: 8.6
Version of Java: 17
OS: macOS