从这个晚上开始,我的项目获得了开张。 “Make Project”进行细微工作,所有材料都编成无事,但当我试图在Wear ulator管理该项目时,我在“建筑工程”窗口中发现以下错误:
Unable to load class int
int
Gradle s dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
在“建筑工程”窗口,如果我点击“int”,我会:
Could not load the value of field `val$unboxed` of `com.google.gson.internal.bind.TypeAdapters$32`
bean found in field `list` of `java.util.Collections$UnmodifiableList`
bean found in field `factories` of `com.google.gson.Gson`
bean found in field `mGson` of `com.android.build.gradle.internal.errors.MessageReceiverImpl`
bean found in field `messageReceiverImpl` of `com.android.build.gradle.internal.errors.SyncIssueReporterImpl`
bean found in field `issueReporter` of `com.android.build.gradle.internal.errors.DeprecationReporterImpl`
bean found in field `deprecationReporter` 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.LayeredSourceDirectoriesImpl`
bean found in field `lateAdditionsDelegates` of `com.android.build.gradle.internal.api.DefaultAndroidSourceDirectorySet`
bean found in field `assets` of `com.android.build.gradle.internal.api.DefaultAndroidSourceSet`
bean found in field `androidTestSourceSet` of `com.android.build.gradle.internal.DefaultConfigData`
bean found in field `defaultConfigData` of `com.android.build.gradle.internal.variant.LegacyVariantInputManager`
bean found in field `$tmp0` of `com.android.build.gradle.internal.variant.LegacyVariantInputManager$3`
bean found in field `val$action` of `org.gradle.configuration.internal.DefaultUserCodeApplicationContext$CurrentApplication$1`
bean found in field `delegate` of `org.gradle.api.internal.DefaultCollectionCallbackActionDecorator$BuildOperationEmittingAction`
bean found in field `actions` of `org.gradle.internal.ImmutableActionSet$SetWithFewActions`
bean found in field `addActions` of `org.gradle.api.internal.collections.DefaultCollectionEventRegister`
bean found in field `eventRegister` of `org.gradle.api.internal.FactoryNamedDomainObjectContainer`
bean found in field `buildTypes` 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.PostProcessingBlock`
bean found in field `_postProcessing` of `com.android.build.gradle.internal.dsl.BuildType$AgpDecorated`
bean found in field `buildTypeObj` of `com.android.build.gradle.internal.core.dsl.impl.features.AndroidResourcesDslInfoImpl`
bean found in field `androidResourcesDsl` of `com.android.build.api.component.impl.features.AndroidResourcesCreationConfigImpl`
bean found in field `value` of `kotlin.InitializedLazyImpl`
bean found in field `androidResourcesCreationConfig$delegate` of `com.android.build.api.component.impl.AndroidTestImpl`
bean found in field `androidTest` of `com.android.build.api.variant.impl.ApplicationVariantImpl`
bean found in field `elements` of `com.google.common.collect.ImmutableList$SerializedForm`
bean found in field `components` of task `:wearApp:signingReport` of type `com.android.build.gradle.internal.tasks.SigningReportTask`.
BUILD FAILED in 956ms
Configuration cache entry stored with 961 problems.
我已删除了藏匿处([UserDirectory]/gradle/caches和[ProjectDirectory]/gradle/configuration-cache),并在“第一”演播室内清理了建筑,并拆除了ches;我甚至试图重整机。 I ve试图将Gradle从8.2.0升至8.4.0-alpha3。 无。
I ve searched online for a fix to this, but haven t found anything useful.
我应该指出,我在工作到工作时唯一做的是给建筑添加“执行”的依赖。 梯度;当我尝试第一次处理错误时,我立即删除。
有些人能否帮助我? 我的下一步是什么?