io.realm.RealmObject not found

若如初见. 提交于 2019-12-08 02:01:52

问题


In my android library project, i install Realm as a Gradle plugin (as described in https://realm.io/docs/java/latest/).

When I add my library project (aar file) into my application project, it can not build with error "cannot access RealmObject class file for io.realm.RealmObject not found"

I have to install realm plugin in application project to overcome this error. Anyone can help me this situation, i do not want install realm plugin in application project.


回答1:


i do not want install realm plugin in application project.

  1. I afraid you have to.
  2. Why not?

You could try to add those dependencies to your Application project by hand:

compile "io.realm:realm-android-library:$version"
compile "io.realm:realm-annotations:$version"


来源:https://stackoverflow.com/questions/36763491/io-realm-realmobject-not-found

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!