瑞安唐

想做一名“知行着”

【问题】Android Studio3.1.2 Rejecting re-init on previously-failed class

Rejecting re-init on previously-failed class java.lang.Class<org.greenrobot.greendao.database.DatabaseOpenHelper$EncryptedHelper>: java.lang.NoClassDefFoundError: Failed resolution of: Lnet/sqlcipher/database/SQLiteOpenHelper;

at void com.lanren.lanrenbook.dao.DbHelper.<init>() (DbHelper.java:14)
        at com.lanren.lanrenbook.dao.DbHelper com.lanren.lanrenbook.dao.DbHelper.getInstance() (DbHelper.java:27)
        at void com.lanren.lanrenbook.presenter.impl.SearchPresenterImpl$2.subscribe(io.reactivex.ObservableEmitter) (SearchPresenterImpl.java:63)
        at void io.reactivex.internal.operators.observable.ObservableCreate.subscribeActual(io.reactivex.Observer) (ObservableCreate.java:40)
        at void io.reactivex.Observable.subscribe(io.reactivex.Observer) (Observable.java:10910)
        at void io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run() (ObservableSubscribeOn.java:96)
        at void io.reactivex.Scheduler$DisposeTask.run() (Scheduler.java:452)
        at void io.reactivex.internal.schedulers.ScheduledRunnable.run() (ScheduledRunnable.java:61)
        at java.lang.Object io.reactivex.internal.schedulers.ScheduledRunnable.call() (ScheduledRunnable.java:52)
        at void java.util.concurrent.FutureTask.run() (FutureTask.java:266)
        at void java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run() (ScheduledThreadPoolExecutor.java:301)
        at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1162)
        at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:636)

        at void java.lang.Thread.run() (Thread.java:764)

Caused by: java.lang.ClassNotFoundException: Didn't find class "net.sqlcipher.database.SQLiteOpenHelper" on path: DexPathList[[zip file "/data/app/com.lanren.lanrenbook-gRFbydhc6m74mApE3sUl1w==/base.apk", zip file "/data/app/com.lanren.lanrenbook-gRFbydhc6m74mApE3sUl1w==/split_lib_dependencies_apk.apk", zip file "/data/app/com.lanren.lanrenbook-gRFbydhc6m74mApE3sUl1w==/split_lib_resources_apk.apk", zip file "/data/app/com.lanren.lanrenbook-gRFbydhc6m74mApE3sUl1w==/split_lib_slice_0_apk.apk", zip file "/data/app/com.lanren.lanrenbook-gRFbydhc6m74mApE3sUl1w==/split_lib_slice_1_apk.apk", zip file "/data/app/com.lanren.lanrenbook-gRFbydhc6m74mApE3sUl1w==/split_lib_slice_2_apk.apk", zip file "/data/app/com.lanren.lanrenbook-gRFbydhc6m74mApE3sUl1w==/split_lib_slice_3_apk.apk", zip file "/data/app/com.lanren.lanrenbook-gRFbydhc6m74mApE3sUl1w==/split_lib_slice_4_apk.apk", zip file "/data/app/com.lanren.lanrenbook-gRFbydhc6m74mApE3sUl1w==/split_lib_slice_5_apk.apk", zip file "/data/app/com.lanren.lanrenbook-gRFbydhc6


解决办法:关闭Android Studio中的Instant Run功能。File -> Setting -> Build,Execution,Deployment -> Instant Run,取消勾选。

亲测ok


阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sinat_28864443/article/details/80321287
个人分类: Android 开发遇见坑
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

不良信息举报

【问题】Android Studio3.1.2 Rejecting re-init on previously-failed class

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭