English 中文(简体)
简讯:演播室 谷物综合症:无法装上班
原标题:Android Studio: Gradle Sync issue: Unable to load class int

从这个晚上开始,我的项目获得了开张。 “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.

我应该指出,我在工作到工作时唯一做的是给建筑添加“执行”的依赖。 梯度;当我尝试第一次处理错误时,我立即删除。

有些人能否帮助我? 我的下一步是什么?

问题回答

问题得到解决。 我拿不住Series和Gradle,删除了转播的目录,然后重新插入所有内容。 梯度中有一些腐败。

I resolved it by running:

窗户上的梯度签字报告——无配置——

On macOs or linux, run ./gralew signingReport --no-configuration-cache.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签