booster icon indicating copy to clipboard operation
booster copied to clipboard

开启Gradle Configuration cache 报错:Configuration cache state could not be cached: field `queue` of `java.util.WeakHashMap`

Open pidanxiangjiao opened this issue 8 months ago • 2 comments

  • Java version openjdk 17.0.15

  • Gradle version 8.9

  • Android Gradle plugin version 8.5.1

  • Booster version 5.0.0

  • Stack traces

  • What went wrong: Configuration cache state could not be cached: field queue of java.util.WeakHashMap bean found in field values of org.jetbrains.kotlin.gradle.utils.StoredPropertyStorage bean found in field storage of org.gradle.internal.extensibility.DefaultExtraPropertiesExtension bean found in field extraProperties of com.android.build.gradle.internal.services.ProjectServices bean found in field projectServices of com.android.build.gradle.internal.services.VariantServicesImpl bean found in field variantServices of com.android.build.api.variant.impl.BundleConfigImpl bean found in field bundleConfig of com.android.build.api.variant.impl.ApplicationVariantImpl bean found in field __variant__ of task :app:transformReleaseClassesWithBooster of type com.didiglobal.booster.gradle.BoosterTransformTask: error writing value of type 'java.lang.ref.ReferenceQueue'

Unable to make field private volatile java.lang.ref.Reference java.lang.ref.ReferenceQueue.head accessible: module java.base does not "opens java.lang.ref" to unnamed module @6434e3ac

pidanxiangjiao avatar Jun 09 '25 03:06 pidanxiangjiao

same question , when add org.gradle.configuration-cache=true in gradle.properties

Kola-Chao avatar Jun 11 '25 07:06 Kola-Chao

same issue

yinkh avatar Jun 24 '25 08:06 yinkh