New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoClassDefFoundError: io.realm.RealmConfiguration$Builder after gradle plugin update #1832
Comments
Also worth noting that going back to Android Studio 1.5, but still using buildToolsVersion '23.0.2' and 'com.android.tools.build:gradle:2.0.0-alpha1' I am able to run the app successfully. |
I finally upgraded to Android Studio 2.0 preview. I created a small app, and I can't reproduce your issue. My
and
In my activity's
How does my app differ from yours? |
I had similar issue - switching gradle plug-in from |
@ROUGHBOY Thanks for sharing. |
Hi guys, I'm still having this problem. I'm using com.android.tools.build:gradle:2.0.0-alpha3 . Is really the plugin a problem? |
To let you know I tried 2.0.0-alpha(1, 2, 3). It happened in all versions. @kneth |
@eduardocucharro Can you share a small app which demonstrate the issue? |
I've taken a look to other issues and everything points to a multidex problem @kneth ! I started developing to lollipop and it was ok until I tried Jelly Bean. :) |
@eduardocucharro Thanks for the update. |
I have same problem with 'com.android.tools.build:gradle:2.0.0-alpha9' - I cannot run as I get "XYZ is not part of the schema for this Realm." Problem seems to occur when I add any other object to exisiting one, example:
Or same with RealmList. |
Are you still seeing this problem with |
Similar exception while using 2.0.0-beta5 java.lang.IllegalAccessError: Method 'void io.realm.Realm.checkIfValid()' is inaccessible to class 'io.realm.UserInfoRealmProxy' (declaration of 'io.realm.UserInfoRealmProxy' appears in /data/data/package name/files/instant-run/dex/slice-slice_9_7c81990a9272e50f79d25c2c16b10bad810e7cd5-classes.dex) |
@avenwu That problem is because of Instant Run. It should apparently be fixed in beta6. You can see more here: #2139 Since we haven't been able to reproduce this issue and it should apparently be fixed in beta6, I'll close this issue now. Feel free to reopen if you see it again using beta6 and above |
@cmelchior thx for your reply |
Hi, I've come across this problem too, but I'm calling: I've seen Gradle get mentioned, I'm currently using: |
As I recall, this was related to Instant Run. Since Instant Run and Android Studio are moving targets at the moment, we will need to know what version of Android Studio you are using. |
Hi kneth, I've since switched off Instant Run and now my app works fine. I'm using Android Studio 2.1.2. |
@Hakosuka Great to hear that it works now. Looking at the change log for Android Studio for the last few preview releases, Instant Run is still work-in-progress :-( |
I recently updated Android Studio from 1.5 to 2.1.2. |
@centerback Just encountered the same problem and did what you suggested. It is working fine! Thanks |
I'm trying Android Studio 2.0 preview, the app was working great, then I wanted to try the Instant Run feature so AS asked me to update the gradle plugin and the build tools to 23.0.2, after the update I can't run the app, I'm getting a java.lang.NoClassDefFoundError: io.realm.RealmConfiguration$Builder when trying to initialise Realm.
I've tried cleaning and rebuilding the project.
I have multidex enabled, if that's relevant.
The text was updated successfully, but these errors were encountered: