qiniu / android-sdk

Qiniu Resource (Cloud) Storage SDK for Android
MIT License
625 stars 226 forks source link

可能与rxjava冲突? #204

Closed susong closed 7 years ago

susong commented 8 years ago
E/dalvikvm: Could not find class 'rx.subjects.SubjectSubscriptionManager', referenced from method rx.subjects.PublishSubject.create
W/dalvikvm: VFY: unable to resolve new-instance 8872 (Lrx/subjects/SubjectSubscriptionManager;) in Lrx/subjects/PublishSubject;

一引用你们的sdk就报这个错误,然后应用就崩溃了。 下面是我引用的一些库:

compile 'com.android.support:multidex:1.0.1'
// https://github.com/google/gson
compile 'com.google.code.gson:gson:2.6.2'
// https://github.com/JakeWharton/butterknife
compile 'com.jakewharton:butterknife:7.0.1'
// https://github.com/orfjackal/retrolambda
retrolambdaConfig 'net.orfjackal.retrolambda:retrolambda:2.1.0'
// https://github.com/greenrobot/EventBus
compile 'org.greenrobot:eventbus:3.0.0'
// https://github.com/ReactiveX/RxJava
compile 'io.reactivex:rxjava:1.1.0'
// https://github.com/ReactiveX/RxAndroid
compile 'io.reactivex:rxandroid:1.1.0'
// https://projectlombok.org/
compile 'org.projectlombok:lombok:1.16.8'
// https://github.com/loopj/android-async-http
compile 'com.loopj.android:android-async-http:1.4.9'
// https://github.com/qiniu/android-sdk
compile 'com.qiniu:qiniu-android-sdk:7.2.+'
longbai commented 8 years ago

这个是 Could not find class 'rx.subjects.SubjectSubscriptionManager 跟 七牛没什么关系,可能你引用的第三方包太多,超过65535个方法导致load 不正常,麻烦看下相关文章

susong commented 8 years ago

我也感觉是没任何关系,也不是65535的问题,我现在直接使用jar包的方式是没问题的,只是改了下引用方式,其他的都没变,可能只是个例吧,谢谢你的回复!!!

kapok-oak commented 7 years ago

不客气的,有什么问题也可在工单上提问我们的。