Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Analyzer检测配置缓存不生效 #446

Open
hellokai55 opened this issue Dec 18, 2023 · 0 comments
Open

Build Analyzer检测配置缓存不生效 #446

hellokai55 opened this issue Dec 18, 2023 · 0 comments

Comments

@hellokai55
Copy link

hellokai55 commented Dec 18, 2023

Please provide the following informations.

  • System version
    mac os 11.7.1 (20G918)
  • Java version
    11
  • Gradle version
    7.5
  • Android Gradle plugin version
    7.4.2
  • Booster version
    4.16.3
  • Stack traces
    配置:
    org.gradle.configuration-cache=true
    org.gradle.configuration-cache.problems=warn

FAILURE: Build failed with an exception.

  • What went wrong:
    Configuration cache state could not be cached: field 'transform' from type 'com.android.build.gradle.internal.pipeline.IncrementalTransformTask': error writing value of type 'com.didiglobal.booster.gradle.internal.BoosterTransformV34'

Configuration cache state could not be cached: field 'parameter' from type 'com.didiglobal.booster.gradle.internal.BoosterTransformV34': error writing value of type 'com.didiglobal.booster.gradle.TransformParameter'
Configuration cache state could not be cached: field 'buildscript' from type 'com.didiglobal.booster.gradle.TransformParameter': error writing value of type 'org.gradle.api.internal.initialization.DefaultScriptHandler'
> Configuration cache state could not be cached: field 'dependencyResolutionServices' from type 'org.gradle.api.internal.initialization.DefaultScriptHandler': error writing value of type 'org.gradle.api.internal.artifacts.DefaultDependencyManagementServices$DefaultDependencyResolutionServices'
> Configuration cache state could not be cached: field 'services' from type 'org.gradle.api.internal.artifacts.DefaultDependencyManagementServices$DefaultDependencyResolutionServices': error writing value of type 'org.gradle.internal.service.DefaultServiceRegistry'
> Configuration cache state could not be cached: field 'allServices' from type 'org.gradle.internal.service.DefaultServiceRegistry': error writing value of type 'org.gradle.internal.service.DefaultServiceRegistry$CompositeServiceProvider'
> Configuration cache state could not be cached: field 'serviceProviders' from type 'org.gradle.internal.service.DefaultServiceRegistry$CompositeServiceProvider': error writing value of type '[Lorg.gradle.internal.service.ServiceProvider;'
> Configuration cache state could not be cached: field 'providersByType' from type 'org.gradle.internal.service.DefaultServiceRegistry$OwnServices': error writing value of type 'java.util.HashMap'
> Configuration cache state could not be cached: field 'dependents' from type 'org.gradle.internal.service.DefaultServiceRegistry$FixedInstanceService': error writing value of type 'java.util.concurrent.ConcurrentLinkedQueue'
> Configuration cache state could not be cached: field 'constructor' from type 'org.gradle.internal.service.DefaultServiceRegistry$ConstructorService': error writing value of type 'java.lang.reflect.Constructor'
> Configuration cache state could not be cached: field 'constructorAccessor' from type 'java.lang.reflect.Constructor': error writing value of type 'jdk.internal.reflect.DelegatingConstructorAccessorImpl'
> Unable to make field private jdk.internal.reflect.ConstructorAccessorImpl jdk.internal.reflect.DelegatingConstructorAccessorImpl.delegate accessible: module java.base does not "opens jdk.internal.reflect" to unnamed module @26de4267

  • Try:

Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

=====================
为了配置缓存,使用Build Analyzer中的检测工具,发现上述问题
想问下这个会适配吗?

@hellokai55 hellokai55 changed the title 配置缓存不生效 Build Analyzer检测配置缓存不生效 Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant