VasDolly icon indicating copy to clipboard operation
VasDolly copied to clipboard

已配置其他flavor(非渠道)的情况下不能使用vasdolly吗

Open pglve opened this issue 2 years ago • 1 comments

flavor和vasdolly共存的情况下报错: Configuration cache state could not be cached: field 'variant' from type 'com.tencent.vasdolly.plugin.task.ApkChannelPackageTask': error writing value of type 'com.android.build.api.component.analytics.AnalyticsEnabledApplicationVariant'

Configuration cache state could not be cached: field 'delegate' from type 'com.android.build.api.component.analytics.AnalyticsEnabledApplicationVariant': error writing value of type 'com.android.build.api.variant.impl.ApplicationVariantImpl' Configuration cache state could not be cached: field 'delegate$delegate' from type 'com.android.build.api.variant.impl.ApplicationVariantImpl': 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.api.component.impl.ApkCreationConfigImpl' > Configuration cache state could not be cached: field 'variantDslInfo' from type 'com.android.build.api.component.impl.ApkCreationConfigImpl': error writing value of type 'com.android.build.gradle.internal.core.VariantDslInfoImpl' > Configuration cache state could not be cached: field 'buildTypeObj' from type 'com.android.build.gradle.internal.core.VariantDslInfoImpl': error writing value of type 'com.android.build.gradle.internal.dsl.BuildType$AgpDecorated' > Configuration cache state could not be cached: field '_postProcessing' from type 'com.android.build.gradle.internal.dsl.BuildType$AgpDecorated': error writing value of type 'com.android.build.gradle.internal.dsl.PostProcessingBlock' > Configuration cache state could not be cached: field 'dslServices' from type 'com.android.build.gradle.internal.dsl.PostProcessingBlock': error writing value of type 'com.android.build.gradle.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$$Lambda$807/0x00000001008e8490' > Configuration cache state could not be cached: field 'arg$1' from type 'com.android.build.gradle.internal.plugins.BasePlugin$$Lambda$807/0x00000001008e8490': error writing value of type 'com.android.build.gradle.internal.plugins.AppPlugin' > Configuration cache state could not be cached: field 'androidComponentsExtension' from type 'com.android.build.gradle.internal.plugins.AppPlugin': error writing value of type 'com.android.build.gradle.internal.plugins.AppPlugin$ApplicationAndroidComponentsExtensionImplCompat' > Configuration cache state could not be cached: field 'commonExtension' from type 'com.android.build.gradle.internal.plugins.AppPlugin$ApplicationAndroidComponentsExtensionImplCompat': 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 type '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 value 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$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.DefaultCollectionCallbackActionDecorator$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.DefaultUserCodeApplicationContext$CurrentApplication$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 writing 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': 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$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.DefaultCollectionCallbackActionDecorator$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.DefaultUserCodeApplicationContext$CurrentApplication$1': error writing value of type 'org.jetbrains.kotlin.gradle.plugin.mpp.SyncKotlinAndAndroidSourceSetsKt$sam$org_gradle_api_Action$0' > Configuration cache state could not be cached: field 'function' from type 'org.jetbrains.kotlin.gradle.plugin.mpp.SyncKotlinAndAndroidSourceSetsKt$sam$org_gradle_api_Action$0': error writing value of type 'org.jetbrains.kotlin.gradle.plugin.mpp.SyncKotlinAndAndroidSourceSetsKt$syncKotlinAndAndroidSourceSets$1' > Configuration cache state could not be cached: field '$kotlinExtension' from type 'org.jetbrains.kotlin.gradle.plugin.mpp.SyncKotlinAndAndroidSourceSetsKt$syncKotlinAndAndroidSourceSets$1': error writing value of type 'org.jetbrains.kotlin.gradle.dsl.KotlinAndroidProjectExtension' > Configuration cache state could not be cached: field 'target' from type 'org.jetbrains.kotlin.gradle.dsl.KotlinAndroidProjectExtension': 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.KotlinAndroidTarget': 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.FactoryNamedDomainObjectContainer': 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.DefaultNamedDomainObjectCollection$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.mpp.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.api.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.internal.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.api.artifact.impl.ArtifactsImpl': error writing value of type 'com.android.build.api.artifact.impl.StorageProviderImpl' > Configuration cache state could not be cached: field 'directory' 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.build.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.

pglve avatar Jan 15 '23 02:01 pglve

可以使用 gradle rebuildChannel

QiaoYang0923 avatar Mar 14 '23 09:03 QiaoYang0923