Goodday。过去几周我一直有这个问题。我的应用程序的当前版本是在Play商店,并且几乎没有问题,然后我尝试添加try catch,因为特定的崩溃。
之后我遇到了问题。 在调试模式下,应用程序运行良好,但一旦我生成签名的APK和测试,我就会收到此错误。
E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
Process: com.afrivelle.moonlight, PID: 23343
java.lang.IllegalStateException: closed
at a.a.g.c.a(Unknown Source)
at b.m.a(Unknown Source)
at b.m.a(Unknown Source)
at b.m.al(Unknown Source)
at b.a.a(Unknown Source)
at b.a.a(Unknown Source)
at b.m.a(Unknown Source)
at b.m.m(Unknown Source)
at b.m.v(Unknown Source)
at a.a.d.s(Unknown Source)
at a.an.d(Unknown Source)
at io.a.d.a.a.y.e(Unknown Source)
at io.a.d.a.a.y.b(Unknown Source)
at io.a.d.a.a.o.a(Unknown Source)
at a.w.a(Unknown Source)
at a.a.a.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:762)
我尝试更新我的依赖项都无济于事。这是我的依赖。
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile('io.socket:socket.io-client:1.0.0') {
exclude group: 'org.json', module: 'json'
}
compile 'com.github.bumptech.glide:glide:4.5.0'
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
compile 'me.leolin:ShortcutBadger:1.1.19@aar'
compile 'com.hbb20:ccp:2.0.8'
compile 'com.google.code.gson:gson:2.8.2'
compile 'com.google.firebase:firebase-messaging:11.2.0'
compile 'com.google.android.gms:play-services-location:11.2.0'
compile 'com.google.android.gms:play-services-places:11.2.0'
compile 'com.android.support:appcompat-v7:27.0.2'
compile 'com.android.support:cardview-v7:27.0.2'
compile 'com.github.nguyenhoanglam:ImagePicker:1.2.1'
compile 'com.android.support:design:27.0.2'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.jakewharton:butterknife:8.8.1'
compile 'io.apptik.widget:multislider:1.3'
compile 'com.android.volley:volley:1.1.0'
testCompile 'junit:junit:4.12'
}
知道问题是什么吗?
答案 0 :(得分:1)
鉴于stacktrace我会假设你使用proguard来模糊你的发布版本。
最有可能的是,您的proguard配置出了问题,因为正如您所说,调试版本运行正常。