Status Update
Comments
cj...@gmail.com <cj...@gmail.com> #2
Any plans to support this?
ku...@google.com <ku...@google.com>
sg...@google.com <sg...@google.com>
ze...@google.com <ze...@google.com> #3
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.compose.material3:material3-adaptive-navigation-suite:1.4.0-alpha07
androidx.compose.material3:material3-adaptive-navigation-suite-android:1.4.0-alpha07
sg...@google.com <sg...@google.com> #4
Tried to run the reproduction with the code from
* What went wrong:
Plugin [id: 'com.careem.publishing', version: '0.3.7', apply: false] was not found in any of the following sources:
Bingran, can you think of a situation where the global synthetics are compiled with a higher minSDK than the rest of the project? Dex file version 037 was introduced at minSDK 24 iirc.
cj...@gmail.com <cj...@gmail.com> #5
Ah damnit. The artifact is also behind VPN. I will try to add a reproducer that doesn't depend on those artifacts or at least embeds them.
cj...@gmail.com <cj...@gmail.com> #6
Updated repro project here
bi...@google.com <bi...@google.com>
bi...@google.com <bi...@google.com> #7
I am able to reproduce the error by adding android.injected.build.api=24
to gradle.properties
and run it from command line, which is same as running from IDE with a device of level 24. The root cause is the minSdkVersion
used for merging global synthetics is not consistent with the version used when generating global synthetics in dexing. Fixed it with I79ac3ef95121378b3111bb01d0d45d92b101aee8
bi...@google.com <bi...@google.com>
ub...@gmail.com <ub...@gmail.com> #8
Can someone explain what exactly the global synthetics Gradle task generates and how to disable it using Kotlin script?
I found that every few builds the task suddenly becomes really slow (can take several minutes even for very small projects in those cases) and sometimes even makes the whole IDE unresponsive.
I didn't find an equivalent to android.enableGlobalSyntheticsGeneration
in Kotlin script.
Unfortunately, there doesn't seem to be any documentation out there for the flag and/or the task. Or I'm just too dumb to properly Google it. 😅 For me, this thread is literally the only search hit.
bi...@google.com <bi...@google.com> #9
There is no DSL for disable it and the gradle property android.enableGlobalSyntheticsGeneration
will be gone soon. Basically we need to generate global synthetics for correctness of the build. If it makes the build slow, we would love to find out why. I guess it would be helpful if you could share a build scan so that we can have a better understanding of your build performance.
Description
Seeing an error updating from AS Canary 06 -> Canary 07
It goes away if I disable the globalSynthetics task via
android.enableGlobalSyntheticsGeneration=false