Android Illegalstateexception: Attempt To Use Inflater After Calling End
Here is my Stacktrace: java.lang.IllegalStateException: attempt to use Inflater after calling end at java.util.zip.Inflater.checkOpen(Inflater.java:332) a
Solution 1:
Note that you cannot close the downloading InputStream from a different thread than your download service (i.e. the one which is calling InputStream.read).
Do you have another thread that by any chance is trying to close the stream using InputStream.close() api? such a behavior will cause this kind of runtime exception. On more recent versions of OkHttp, a somewhat similar exception will be produced from the closing thread. See below for a reference: https://github.com/square/okhttp/issues/1842
Post a Comment for "Android Illegalstateexception: Attempt To Use Inflater After Calling End"