问题
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.
- I afraid you have to.
- 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