java - 找不到方法“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
有什么帮助吗?
解决方案
推荐阅读
- ruby-on-rails - 在 textarea 表单字段中编辑 JSONB 数据
- python - 如何在 Python 中避免区分大小写
- android - getSupportActionBar() 在片段中不支持
- python - matplotlib 动画在运行后立即关闭
- javascript - 循环并打印出(在 html 上)具有函数的对象数组
- javascript - Vue.js $emit 来自父级的事件并在组件(子级)上接收它
- hyper-v - Hyper-V 无法启用服务器之间的复制,错误为 0x00002EE2
- javascript - 获取 Javascript 对象的值
- node.js - 如何使节点 cms 模块化
- php - 将一些自定义文本添加到与 Woocommerce 电子邮件模板挂钩的单个文件中