Open cirediew opened 4 years ago
getting same error!! anyone found solution?
Ion.with(context)
.load("GET", url)
.setTimeout(60000)
.addHeader("device-type", "android")
.asJsonObject().withResponse()
.setCallback((e, result) -> {
Log.e("Exception", e.toString());
if (result != null) {
JsonObject object = result.getResult();
Log.e("Object", object.getAsString());
}
});
This is what i have used
Same crash! In my case I decided to test old working app on Android 5.1 UPD on any android
I've found the solution.
in top gradle remove this
'com.android.tools.build:gradle:4.1.0-rc01
and set this
'com.android.tools.build:gradle:4.0.1'
Worked By changing Gradle to 4.0.1
This happens again in Gradle 4.1.0
I have same issues, after update my Android Studio to 4.1.
10-14 20:00:29.799 5110-5151/com.test.http E/AndroidRuntime: FATAL EXCEPTION: ion-ion
Process: com.test.http, PID: 5110
java.lang.AssertionError
at com.koushikdutta.async.AsyncSSLSocketWrapper.write(AsyncSSLSocketWrapper.java:492)
at com.koushikdutta.async.AsyncSSLSocketWrapper.handleHandshakeStatus(AsyncSSLSocketWrapper.java:378)
at com.koushikdutta.async.AsyncSSLSocketWrapper.handshake(AsyncSSLSocketWrapper.java:182)
at com.koushikdutta.async.http.AsyncSSLSocketMiddleware.tryHandshake(AsyncSSLSocketMiddleware.java:89)
at com.koushikdutta.async.http.AsyncSSLSocketMiddleware$2.onConnectCompleted(AsyncSSLSocketMiddleware.java:106)
at com.koushikdutta.async.http.AsyncSocketMiddleware.lambda$getSocket$3$AsyncSocketMiddleware(AsyncSocketMiddleware.java:217)
at com.koushikdutta.async.http.-$$Lambda$AsyncSocketMiddleware$glazjOxu-iNIRY4N890Wl1ngyGo.onCompleted(lambda)
at com.koushikdutta.async.future.SimpleFuture.lambda$setCallback$0(SimpleFuture.java:212)
at com.koushikdutta.async.future.-$$Lambda$SimpleFuture$h_gK5Y1XHZI1H8JTE2xOg4dXbp8.onCompleted(lambda)
at com.koushikdutta.async.future.SimpleFuture$FutureCallsite.loop(SimpleFuture.java:130)
at com.koushikdutta.async.future.SimpleFuture.handleCallbackUnlocked(SimpleFuture.java:153)
at com.koushikdutta.async.future.SimpleFuture.setComplete(SimpleFuture.java:191)
at com.koushikdutta.async.future.SimpleFuture.setComplete(SimpleFuture.java:174)
at com.koushikdutta.async.future.-$$Lambda$VNAuWcttAhMr3VsWCERbmWE6yR0.success(lambda)
at com.koushikdutta.async.future.SimpleFuture.lambda$success$4(SimpleFuture.java:279)
at com.koushikdutta.async.future.-$$Lambda$SimpleFuture$DxIsaj7NQi76eWgOKS4iviWPLV0.onCompleted(lambda)
at com.koushikdutta.async.future.SimpleFuture$FutureCallsite.loop(SimpleFuture.java:130)
at com.koushikdutta.async.future.SimpleFuture.handleCallbackUnlocked(SimpleFuture.java:153)
at com.koushikdutta.async.future.SimpleFuture.setComplete(SimpleFuture.java:191)
at com.koushikdutta.async.future.SimpleFuture.setComplete(SimpleFuture.java:178)
at com.koushikdutta.async.http.-$$Lambda$cBC5du-82c5EcL72rP5wNK7Y2Y4.onConnectCompleted(lambda)
at com.koushikdutta.async.AsyncServer.runLoop(AsyncServer.java:896)
at com.koushikdutta.async.AsyncServer.run(AsyncServer.java:717)
at com.koushikdutta.async.AsyncServer.access$800(AsyncServer.java:46)
at com.koushikdutta.async.AsyncServer$11.run(AsyncServer.java:671)
10-14 20:00:29.984 5110-5128/com.test.http E/Surface: getSlotFromBufferLocked: unknown buffer: 0x7f9a075e20
The same error in Gradle 4.1.0, please Fix it
The same error in Gradle 4.1.1, How to fix it???
The same error with Gradle 4.1.2.
Thx to @djdance!!! Set to 'com.android.tools.build:gradle:4.0.1' solved it
Hi when we can expect the fixes? koush
Fixed in 3.1.0
implementation 'com.koushikdutta.ion:ion:3.1.0'
The same error in Gradle 4.1.1, How to fix it???
Fixed in version 3.1.0
Hi!
I get the following error when running a Get using ion.
It occurs here: https://github.com/koush/AndroidAsync/blob/master/AndroidAsync/src/com/koushikdutta/async/AsyncSSLSocketWrapper.java#L474
I'm not sure why or if I'm doing something wrong but using the debugger
bb.remaingin
andwriteList.hasRemaining()
are always0
for me and therefore an assertion error is thrown.My code:
When I'm running release mode everything seems to be working fine. So why is it not in debug mode?
Any help is appreciated!