找不到方法“ io.realm.annotations.RealmClass.name”

时间:2018-08-30 10:57:17

标签: java android gradle realm

当我尝试编辑使用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

有帮助吗?

0 个答案:

没有答案