j256 / ormlite-android

ORMLite Android functionality used in conjunction with ormlite-core
http://ormlite.com/
ISC License
1.59k stars 367 forks source link

java.lang.NoClassDefFoundError: rx.schedulers.Schedulers #65

Closed mateushenriquebrum closed 7 years ago

mateushenriquebrum commented 8 years ago

compile 'com.j256.ormlite:ormlite-android:4.48' compile 'com.j256.ormlite:ormlite-core:4.48' compile 'io.reactivex:rxandroid:1.1.0' compile 'io.reactivex:rxjava:1.1.0'

For a strange cause, I am getting "java.lang.NoClassDefFoundError: rx.schedulers.Schedulers" when I try to compile in a device with Android 4.4.4, api 19 and ORMLite. I don't have such problem without ORMLite nor in device with api 23.

Some one know why my "reactive package" is bing excluded from my apk ?

gilokimu commented 7 years ago

NoClassDefFoundError often happens when the build tools and/or hot-swapping fails to update after changing dependencies.

Try a Build > Clean Project and then run again.

JianxunRao commented 7 years ago

@mateushenriquebrum Try custom the public class MyApplication extends MultiDexApplication

j256 commented 7 years ago

I don't think this a ORMLite issue.