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

Configuration cache blockers #306

Open
2 of 6 tasks
TWiStErRob opened this issue Sep 30, 2022 · 0 comments
Open
2 of 6 tasks

Configuration cache blockers #306

TWiStErRob opened this issue Sep 30, 2022 · 0 comments
Labels
Milestone

Comments

@TWiStErRob
Copy link
Owner

TWiStErRob commented Sep 30, 2022

PS P:\projects\workspace\net.twisterrob.colorfilters> ./gradlew check assemble --configuration-cache
Calculating task graph as no configuration cache is available for tasks: check assemble

351 problems were found storing the configuration cache, 71 of which seem unique.
- Task `:app:extractMinificationRules` of type `org.gradle.api.DefaultTask`: cannot serialize object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 'org.gradle.api.Project', as these are not 
supported with the configuration cache.
  See https://docs.gradle.org/7.5.1/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
- Task `:app:generateReleaseR8MinificationRules` of type `org.gradle.api.DefaultTask`: cannot serialize object of type 'com.android.build.gradle.internal.feature.BundleAllClasses', a subtype of 'org.gradle.api.Task'
, as these are not supported with the configuration cache.
  See https://docs.gradle.org/7.5.1/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:app:generateReleaseR8MinificationRules` of type `org.gradle.api.DefaultTask`: cannot serialize object of type 'com.android.build.gradle.internal.lint.AndroidLintAnalysisTask', a subtype of 'org.gradle.api.T
ask', as these are not supported with the configuration cache.
  See https://docs.gradle.org/7.5.1/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:app:generateReleaseR8MinificationRules` of type `org.gradle.api.DefaultTask`: cannot serialize object of type 'com.android.build.gradle.internal.lint.AndroidLintTask', a subtype of 'org.gradle.api.Task', as
 these are not supported with the configuration cache.
  See https://docs.gradle.org/7.5.1/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:app:generateReleaseR8MinificationRules` of type `org.gradle.api.DefaultTask`: cannot serialize object of type 'com.android.build.gradle.internal.lint.LintModelWriterTask', a subtype of 'org.gradle.api.Task'
, as these are not supported with the configuration cache.
  See https://docs.gradle.org/7.5.1/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:app:generateReleaseR8MinificationRules` of type `org.gradle.api.DefaultTask`: cannot serialize object of type 'com.android.build.gradle.internal.res.LinkAndroidResForBundleTask', a subtype of 'org.gradle.ap
i.Task', as these are not supported with the configuration cache.
  See https://docs.gradle.org/7.5.1/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:app:generateReleaseR8MinificationRules` of type `org.gradle.api.DefaultTask`: cannot serialize object of type 'com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask', a subtype of 'org.g
radle.api.Task', as these are not supported with the configuration cache.
  See https://docs.gradle.org/7.5.1/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:app:generateReleaseR8MinificationRules` of type `org.gradle.api.DefaultTask`: cannot serialize object of type 'com.android.build.gradle.internal.res.ParseLibraryResourcesTask', a subtype of 'org.gradle.api.
Task', as these are not supported with the configuration cache.
  See https://docs.gradle.org/7.5.1/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:app:generateReleaseR8MinificationRules` of type `org.gradle.api.DefaultTask`: cannot serialize object of type 'com.android.build.gradle.internal.tasks.ApkZipPackagingTask', a subtype of 'org.gradle.api.Task
', as these are not supported with the configuration cache.
  See https://docs.gradle.org/7.5.1/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:app:generateReleaseR8MinificationRules` of type `org.gradle.api.DefaultTask`: cannot serialize object of type 'com.android.build.gradle.internal.tasks.AppMetadataTask', a subtype of 'org.gradle.api.Task', a
s these are not supported with the configuration cache.
  See https://docs.gradle.org/7.5.1/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:app:generateReleaseR8MinificationRules` of type `org.gradle.api.DefaultTask`: cannot serialize object of type 'com.android.build.gradle.internal.tasks.ApplicationIdWriterTask', a subtype of 'org.gradle.api.
Task', as these are not supported with the configuration cache.
  See https://docs.gradle.org/7.5.1/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:app:generateReleaseR8MinificationRules` of type `org.gradle.api.DefaultTask`: cannot serialize object of type 'com.android.build.gradle.internal.tasks.BundleIdeModelProducerTask', a subtype of 'org.gradle.a
pi.Task', as these are not supported with the configuration cache.
  See https://docs.gradle.org/7.5.1/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:app:generateReleaseR8MinificationRules` of type `org.gradle.api.DefaultTask`: cannot serialize object of type 'com.android.build.gradle.internal.tasks.BundleReportDependenciesTask', a subtype of 'org.gradle
.api.Task', as these are not supported with the configuration cache.
  See https://docs.gradle.org/7.5.1/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:app:generateReleaseR8MinificationRules` of type `org.gradle.api.DefaultTask`: cannot serialize object of type 'com.android.build.gradle.internal.tasks.BundleToApkTask', a subtype of 'org.gradle.api.Task', a
s these are not supported with the configuration cache.
  See https://docs.gradle.org/7.5.1/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:app:generateReleaseR8MinificationRules` of type `org.gradle.api.DefaultTask`: cannot serialize object of type 'com.android.build.gradle.internal.tasks.BundleToStandaloneApkTask', a subtype of 'org.gradle.ap
i.Task', as these are not supported with the configuration cache.
  See https://docs.gradle.org/7.5.1/userguide/configuration_cache.html#config_cache:requirements:task_access
plus 56 more problems. Please see the report for details.

See the complete report at file:///P:/projects/workspace/net.twisterrob.colorfilters/build/reports/configuration-cache/2kzerygqb6te1xdydu0jwaohv/3fpwmxq4babee8e7qogqnf157/configuration-cache-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Configuration cache state could not be cached: field 'actions' from type 'org.gradle.api.DefaultTask': error writing value of type 'java.util.ArrayList'
> Configuration cache state could not be cached: field 'action' from type 'org.gradle.api.internal.AbstractTask$TaskActionWrapper': error writing value of type 'net.twisterrob.gradle.android.AndroidMinificationPlugi
n$createGenerateR8Rules$1$1'
   > Configuration cache state could not be cached: field 'this$0' from type 'net.twisterrob.gradle.android.AndroidMinificationPlugin$createGenerateR8Rules$1$1': error writing value of type 'net.twisterrob.gradle.an
droid.AndroidMinificationPlugin$createGenerateR8Rules$1'
      > Configuration cache state could not be cached: field '$variant' from type 'net.twisterrob.gradle.android.AndroidMinificationPlugin$createGenerateR8Rules$1': error writing value of type 'com.android.build.gra
dle.internal.api.ApplicationVariantImpl'
         > Configuration cache state could not be cached: field 'unitTestVariant' from type 'com.android.build.gradle.internal.api.ApplicationVariantImpl': error writing value of type 'com.android.build.gradle.inter
nal.api.UnitTestVariantImpl'
            > Configuration cache state could not be cached: field 'variantData' from type 'com.android.build.gradle.internal.api.UnitTestVariantImpl': error writing value of type 'com.android.build.gradle.internal.
variant.TestVariantData'
               > Configuration cache state could not be cached: field 'testedVariantData' from type 'com.android.build.gradle.internal.variant.TestVariantData': error writing value of type 'com.android.build.gradle.
internal.variant.ApplicationVariantData'
                  > Configuration cache state could not be cached: field 'paths' from type 'com.android.build.gradle.internal.variant.ApplicationVariantData': error writing value of type 'com.android.build.gradle.in
ternal.variant.VariantPathHelper'
                     > Configuration cache state could not be cached: field 'dslServices' from type 'com.android.build.gradle.internal.variant.VariantPathHelper': error writing value of type 'com.android.build.gradl
e.internal.services.DslServicesImpl'
                        > Configuration cache state could not be cached: field 'versionedSdkLoaderServiceProvider' from type 'com.android.build.gradle.internal.services.DslServicesImpl': error writing value of type 
'com.android.build.gradle.internal.plugins.BasePlugin$dslServices$2$1'
                           > Configuration cache state could not be cached: field 'this$0' from type 'com.android.build.gradle.internal.plugins.BasePlugin$dslServices$2$1': error writing value of type 'com.android.b
uild.gradle.internal.plugins.AppPlugin'
                              > Configuration cache state could not be cached: field 'androidComponentsExtension$delegate' from type 'com.android.build.gradle.internal.plugins.AppPlugin': error writing value of type
 'kotlin.SynchronizedLazyImpl'
                                 > Configuration cache state could not be cached: field 'value' from type 'kotlin.InitializedLazyImpl': error writing value of type 'com.android.build.gradle.internal.plugins.AppPlugi
n$ApplicationAndroidComponentsExtensionImplCompat'
                                    > Configuration cache state could not be cached: field 'commonExtension' from type 'com.android.build.gradle.internal.plugins.AppPlugin$ApplicationAndroidComponentsExtensionImplCo
mpat': error writing value of type 'com.android.build.gradle.internal.dsl.BaseAppModuleExtension'
                                       > Configuration cache state could not be cached: field 'publicExtensionImpl' from type 'com.android.build.gradle.internal.dsl.BaseAppModuleExtension': error writing value of ty
pe 'com.android.build.gradle.internal.dsl.ApplicationExtensionImpl$AgpDecorated'
                                          > Configuration cache state could not be cached: field 'buildTypes' from type 'com.android.build.gradle.internal.dsl.ApplicationExtensionImpl$AgpDecorated': error writing va
lue of type 'org.gradle.api.internal.FactoryNamedDomainObjectContainer'
                                             > Configuration cache state could not be cached: field 'eventRegister' from type 'org.gradle.api.internal.FactoryNamedDomainObjectContainer': error writing value of type 
'org.gradle.api.internal.collections.DefaultCollectionEventRegister'
                                                > Configuration cache state could not be cached: field 'addActions' from type 'org.gradle.api.internal.collections.DefaultCollectionEventRegister': error writing value
 of type 'org.gradle.internal.ImmutableActionSet$SetWithManyActions'
                                                   > Configuration cache state could not be cached: field 'multipleActions' from type 'org.gradle.internal.ImmutableActionSet$SetWithManyActions': error writing value 
of type 'com.google.common.collect.RegularImmutableSet'
                                                      > Configuration cache state could not be cached: field 'delegate' from type 'org.gradle.api.internal.DefaultCollectionCallbackActionDecorator$BuildOperationEmitt
ingAction': error writing value of type 'org.gradle.configuration.internal.DefaultUserCodeApplicationContext$CurrentApplication$1'
                                                         > Configuration cache state could not be cached: field 'val$action' from type 'org.gradle.configuration.internal.DefaultUserCodeApplicationContext$CurrentAppl
ication$1': error writing value of type 'com.android.build.gradle.internal.variant.LegacyVariantInputManager$3'
                                                            > Configuration cache state could not be cached: field '$tmp0' from type 'com.android.build.gradle.internal.variant.LegacyVariantInputManager$3': error wri
ting value of type 'com.android.build.gradle.internal.variant.LegacyVariantInputManager'
                                                               > Configuration cache state could not be cached: field 'sourceSetManager' from type 'com.android.build.gradle.internal.variant.LegacyVariantInputManager
': error writing value of type 'com.android.build.gradle.internal.dependency.SourceSetManager'
                                                                  > Configuration cache state could not be cached: field 'sourceSetsContainer' from type 'com.android.build.gradle.internal.dependency.SourceSetManager
': error writing value of type 'org.gradle.api.internal.FactoryNamedDomainObjectContainer'
                                                                     > Configuration cache state could not be cached: field 'eventRegister' from type 'org.gradle.api.internal.FactoryNamedDomainObjectContainer': erro
r writing value of type 'org.gradle.api.internal.collections.DefaultCollectionEventRegister'
                                                                        > Configuration cache state could not be cached: field 'addActions' from type 'org.gradle.api.internal.collections.DefaultCollectionEventRegist
er': error writing value of type 'org.gradle.internal.ImmutableActionSet$SetWithFewActions'
                                                                           > Configuration cache state could not be cached: field 'actions' from type 'org.gradle.internal.ImmutableActionSet$SetWithFewActions': error
 writing value of type '[Lorg.gradle.api.Action;'
                                                                              > Configuration cache state could not be cached: field 'delegate' from type 'org.gradle.api.internal.DefaultCollectionCallbackActionDecor
ator$BuildOperationEmittingAction': error writing value of type 'org.gradle.configuration.internal.DefaultUserCodeApplicationContext$CurrentApplication$1'
                                                                                 > Configuration cache state could not be cached: field 'val$action' from type 'org.gradle.configuration.internal.DefaultUserCodeApplic
ationContext$CurrentApplication$1': error writing value of type 'org.jetbrains.kotlin.gradle.plugin.mpp.SyncKotlinAndAndroidSourceSetsKt$syncKotlinAndAndroidSourceSets$1'
                                                                                    > Configuration cache state could not be cached: field '$target' from type 'org.jetbrains.kotlin.gradle.plugin.mpp.SyncKotlinAndAnd
roidSourceSetsKt$syncKotlinAndAndroidSourceSets$1': error writing value of type 'org.jetbrains.kotlin.gradle.plugin.mpp.KotlinAndroidTarget'
                                                                                       > Configuration cache state could not be cached: field 'compilations' from type 'org.jetbrains.kotlin.gradle.plugin.mpp.KotlinAn
droidTarget': error writing value of type 'org.gradle.api.internal.FactoryNamedDomainObjectContainer'
                                                                                          > Configuration cache state could not be cached: field 'index' from type 'org.gradle.api.internal.FactoryNamedDomainObjectCon
tainer': error writing value of type 'org.gradle.api.internal.DefaultNamedDomainObjectCollection$UnfilteredIndex'
                                                                                             > Configuration cache state could not be cached: field 'map' from type 'org.gradle.api.internal.DefaultNamedDomainObjectCo
llection$UnfilteredIndex': error writing value of type 'java.util.TreeMap'
                                                                                                > Configuration cache state could not be cached: field 'androidVariant' from type 'org.jetbrains.kotlin.gradle.plugin.m
pp.KotlinJvmAndroidCompilation': error writing value of type 'com.android.build.gradle.internal.api.ApplicationVariantImpl'
                                                                                                   > Configuration cache state could not be cached: field 'testVariant' from type 'com.android.build.gradle.internal.ap
i.ApplicationVariantImpl': error writing value of type 'com.android.build.gradle.internal.api.TestVariantImpl'
                                                                                                      > Configuration cache state could not be cached: field 'variantData' from type 'com.android.build.gradle.internal
.api.TestVariantImpl': error writing value of type 'com.android.build.gradle.internal.variant.TestVariantData'
                                                                                                         > Configuration cache state could not be cached: field 'testedVariantData' from type 'com.android.build.gradle
.internal.variant.TestVariantData': error writing value of type 'com.android.build.gradle.internal.variant.ApplicationVariantData'
                                                                                                            > Configuration cache state could not be cached: field 'artifacts' from type 'com.android.build.gradle.inte
rnal.variant.ApplicationVariantData': error writing value of type 'com.android.build.api.artifact.impl.ArtifactsImpl'
                                                                                                               > Configuration cache state could not be cached: field 'storageProvider' from type 'com.android.build.ap
i.artifact.impl.ArtifactsImpl': error writing value of type 'com.android.build.api.artifact.impl.StorageProviderImpl'
                                                                                                                  > Configuration cache state could not be cached: field 'fileStorage' from type 'com.android.build.api
.artifact.impl.StorageProviderImpl': error writing value of type 'com.android.build.api.artifact.impl.TypedStorageProvider'
                                                                                                                     > Configuration cache state could not be cached: field 'singleStorage' from type 'com.android.buil
d.api.artifact.impl.TypedStorageProvider': error writing value of type 'java.util.LinkedHashMap'
                                                                                                                        > java.util.ConcurrentModificationException (no error message)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 12s
12 actionable tasks: 12 up-to-date
Configuration cache entry discarded with 351 problems.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant