log:
> Transform classes.jar (project :core:git) with DexingNoClasspathTransform
ERROR: D8: Invalid build configuration. Attempt to create a global synthetic for 'Record desugaring' without a global-synthetics consumer.
> Task :core:app:mergeLibDexDebug FAILED
[Incubating] Problems report is available at: file:///root/ZeroStudio-ZeroStudio-devs/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':core:app:mergeLibDexDebug'.
> Could not resolve all files for configuration ':core:app:debugRuntimeClasspath'
> Failed to transform classes.jar (project :core:git) to match attributes {artifactType=android-dex, asm-transformed-variant=debug, com.android.build.api.attributes.AgpVersionAttr=8.10.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-component-attributes=ComponentSpecificParameters(minSdkVersion=26, debuggable=true, enableCoreLibraryDesugaring=true, enableGlobalSynthetics=false, enableApiModeling=false, dependenciesClassesAreInstrumented=true, asmTransformComponent=debug, useJacocoTransformInstrumentation=false, enableDesugaring=true, needsClasspath=false, useFullClasspath=false, componentIfUsingFullClasspath=null), org.gradle.category=library, org.gradle.jvm.environment=android, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=androidJvm}.
> Execution failed for DexingNoClasspathTransform: /root/.gradle/caches/8.13/transforms/b37e31f92b32ed393a5a2e3d54c42934/transformed/classes.jar.
> Error while dexing.
PS:I have tried to switch the sugar removal attribute, add and remove sugar removal attributes and sugar removal dependency libraries. no effect。
compileOptions { isCoreLibraryDesugaringEnabled = true }
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")
I also tried to add the following properties to $root/gradle.properties, but it didn’t solve the problem :
android.experimental.enableGlobalSynthetics=true
# android.enableGlobalSynthetics=true
android.experimental.enableDexingArtifactTransform=false
The source code has been uploaded to GitHub, core:The source code has been uploaded to GitHub, and the: core: git module is converted from an application module to a library module
Composite construction configuration: ZeroStudio/composite-builds/build-logic/plugins/src/main/java/com/itsaky/androidide/plugins/conf/AndroidModuleConf.kt at main · android-zeros/ZeroStudio · GitHub
De sugar in composite constructionDe sugar library in composite construction: https://github.com/android-zeros/ZeroStudio/tree/main/composite-builds%2Fbuild -logic%2Fdesugaring
github projects:GitHub - android-zeros/ZeroStudio: Learn, build, and create amazing projects in ZeroStudio