Skip to content

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

Description

@pidanxiangjiao
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions