首页 > 解决方案 > 找不到方法“io.realm.annotations.RealmClass.name”

问题描述

当我尝试编辑使用 的书面项目时,Realm出现以下错误:

Unable to find method 'io.realm.annotations.RealmClass.name()Ljava/lang/String;'.
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)</li><li>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)</li><li>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.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

知道此应用程序正在另一台设备上运行。

android 3.2版和gradle是:

dependencies {
    classpath 'com.android.tools.build:gradle:3.3.0-alpha08'
    classpath 'com.google.gms:google-services:4.0.1'
    classpath "io.realm:realm-gradle-plugin:5.4.1"
}

distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

有什么帮助吗?

标签: javaandroidgradlerealm

解决方案


推荐阅读