question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot access RealmObject in a multi-module project

See original GitHub issue

Projects with multi-module cannot access data class extended with RealmObject. It returns

  bad class file: /../lib1/build/intermediates/compile_library_classes_jar/debug/classes.jar(/lib1/RealmObjectExampleModel.class)
undeclared type variable: T
 Please remove or make sure it appears in the correct subdirectory of the classpath.

With Java SDK works fine

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12

github_iconTop GitHub Comments

2reactions
cmelchiorcommented, Jun 24, 2022

We have merged a fix which works in the project here: https://github.com/realm/realm-kotlin/issues/901#issuecomment-1160393534

It should be available in a 1.0.1-SNAPSHOT release within a couple of hours.

2reactions
cmelchiorcommented, Jun 23, 2022

Hi @OmarShehe Thank you very much for this. We can reproduce the issue and are looking into it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Realm - mix models from different projects - Stack Overflow
It should take my models from both projects, Am I right? my gradle: classpath "io.realm:realm-gradle-plugin:2.0.2". and.
Read more >
Cannot access 'java.lang.Object' in Android Studio Chipmunk ...
I have a multi module project where I have implemented Dynamic feature module in it with Dagger as dependency injection framework ...
Read more >
Using Dagger in multi-module apps - Android Developers
A project with multiple Gradle modules is known as a multi-module project. ... However, you cannot use the same code because feature modules ......
Read more >
Realm: Create reactive mobile apps in a fraction of the time
Step 1: Add the class path dependency to the project level build.gradle file. Copy to clipboard ... Open a Realm by instantiating a...
Read more >
Sharing Gradle Configuration in Multi-Module Android Projects
This post shows you a method of sharing common configuration between your Android Library modules in order to cut down on boilerplate Gradle...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found