0

I need to modify realm-java. But simple adding realm-library as module to my android studio does not work. Tell which parts of this repo have to be added to my project, so I could use code locally. If it's possible, provide well-detailed guide.

2
  • well that's a bit tricky because you need to compile the Realm-Core as well which requires Linux or MacOS. So unfortunately I won't be able to help you with this. Commented May 28, 2017 at 10:50
  • @EpicPandaForce what if I'll create a fork, change some lines in a few files? And then just connect my current project not to realm.io account, but to mine github acc with those code? Commented May 28, 2017 at 11:00

1 Answer 1

0

The realm-java repo contains multiple independent modules that must be opened separately in Android Studio.

I would recommend reading https://github.com/realm/realm-java/blob/master/README.md#gotchas which describe the layout.

In particular, you need to do:

git clone https://github.com/realm/realm-java.git --recursive cd realm-java ./gradlew assemble ./gradlew installRealmJava // Examples will now work // Import /realm-java/examples as seperate project // Import /realm-java/realm as seperate project 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.