Mobilefirst 8.0 - application crash on Android version 5 below on https call

Configure the application on MobileFirst 8.0 crashes on Android version 5 below when calling https service using adapter . The same thing works on version 5 and above.

The following are the logs recorded in the device logs:

 OkHttp ConnectionPool at java.lang.Object.wait(Object.java) at java.lang.Thread.parkFor(Thread.java:1205) at sun.misc.Unsafe.park(Unsafe.java:325) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:197) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2056) at java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:435) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1035) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) 

Help if any organ is faced with the same problem.

+5
source share
1 answer

I know that at some point we had to add to AndroidManifest.xml inside the application tag.

  <uses-library android:name="org.apache.http.legacy" android:required="false"/> 
0
source

Source: https://habr.com/ru/post/1273484/


All Articles