FAILURE: Build failed with an exception.
- What went wrong:
Configuration cache state could not be cached: field sdkComponents$delegate of com.android.build.gradle.internal.dsl.ApplicationExtensionImpl$AgpDecorated bean found in field $extension of com.android.build.gradle.internal.tasks.factory.BootClasspathConfigImpl$1 bean found in field isJava8Compatible of com.android.build.gradle.internal.tasks.factory.BootClasspathConfigImpl bean found in field value of kotlin.InitializedLazyImpl bean found in field bootClasspathConfig$delegate of com.android.build.gradle.internal.plugins.AppPlugin bean found in field this$0 of com.android.build.gradle.internal.plugins.BasePlugin$dslServices$2$1 bean found in field versionedSdkLoaderServiceProvider of com.android.build.gradle.internal.services.DslServicesImpl bean found in field dslServices of com.android.build.gradle.internal.dsl.ComposeOptionsImpl bean found in field composeOptions of com.android.build.gradle.internal.dsl.BaseAppModuleExtension bean found in field value of groovy.lang.Reference bean found in field android of top.niunaijun.blackobfuscator.ObfPlugin$_apply_closure2 bean found in field this$0 of top.niunaijun.blackobfuscator.ObfPlugin$1 bean found in field action of org.gradle.api.internal.AbstractTask$TaskActionWrapper bean found in field actions of task :app:mergeLibDexDebug of type com.android.build.gradle.internal.tasks.DexMergingTask: error writing value of type 'kotlin.SynchronizedLazyImpl'
Could not create an instance of type com.android.build.gradle.internal.dsl.SdkComponentsImpl.
Unable to determine constructor argument #6: missing parameter of type Provider, or no service of type Provider<Provider<List>>.
FAILURE: Build failed with an exception.
Configuration cache state could not be cached: field
sdkComponents$delegateofcom.android.build.gradle.internal.dsl.ApplicationExtensionImpl$AgpDecoratedbean found in field$extensionofcom.android.build.gradle.internal.tasks.factory.BootClasspathConfigImpl$1bean found in fieldisJava8Compatibleofcom.android.build.gradle.internal.tasks.factory.BootClasspathConfigImplbean found in fieldvalueofkotlin.InitializedLazyImplbean found in fieldbootClasspathConfig$delegateofcom.android.build.gradle.internal.plugins.AppPluginbean found in fieldthis$0ofcom.android.build.gradle.internal.plugins.BasePlugin$dslServices$2$1bean found in fieldversionedSdkLoaderServiceProviderofcom.android.build.gradle.internal.services.DslServicesImplbean found in fielddslServicesofcom.android.build.gradle.internal.dsl.ComposeOptionsImplbean found in fieldcomposeOptionsofcom.android.build.gradle.internal.dsl.BaseAppModuleExtensionbean found in fieldvalueofgroovy.lang.Referencebean found in fieldandroidoftop.niunaijun.blackobfuscator.ObfPlugin$_apply_closure2bean found in fieldthis$0oftop.niunaijun.blackobfuscator.ObfPlugin$1bean found in fieldactionoforg.gradle.api.internal.AbstractTask$TaskActionWrapperbean found in fieldactionsof task:app:mergeLibDexDebugof typecom.android.build.gradle.internal.tasks.DexMergingTask: error writing value of type 'kotlin.SynchronizedLazyImpl'