Closed carotorrehdz closed 8 years ago
It's hard to diagnose the issue without more information. Here are a coupleof questions that can help us figure things out.
Do you define a custom module or are you relying on de default one? Do you use any library that in turn uses Realm? What version of Realm are you using? What version of the Android Gradle plugin?
@emanuelez Yes, I do define a custom module. I'm using realm version 87.0 and Android Gradle plugin version 1.5.0. And regarding the question of libraries that use Realm not sure if I can answer that question correctly, but here it's my dependencies
part of my app build.gradle
It looks like you have incremental compilation turned on. It doesn't work well with libraries like Realm and Dagger2 currently: http://stackoverflow.com/questions/34989984/dagger-2-sometimes-on-compiling-i-get-cannot-find-symbol-class-daggerapplicati
You can also see this Dagger 2 issue that discuss the problem: https://github.com/google/dagger/issues/298
Thanks @cmelchior and @emanuelez! I'll turn off incremental compilation and I'll see if this error doesn't happened anymore.
@caroth92 Good to hear your problem is solved. I am closing this issue now. Thanks for the feedback!
Every now and then, when I try to run my app Android Studio throws an error in the
Message Gradle Build
section that says that one of my model classes couldn't be added to the module. It also says the message that only classes extending RealmObject can be added. I'm positive that my model class extends from RealmObject and the next time I try to run it it works perfectly. Not sure what is going on and just wanted to let you know.Thanks for all your hard work!