Retrofit not working on specific versions of android

前端 未结 3 1341
盖世英雄少女心
盖世英雄少女心 2020-12-09 06:00

I have a problem with Retrofit on my emulator running Android 4.3 and my device is on Android 4.4.2 while the same code runs normally on another emulator with Android 7.1.1<

3条回答
  •  佛祖请我去吃肉
    2020-12-09 06:23

    If you use android 9 (Pie) or android SDK above 28 and get the issue on over the api call through Retrofit.

    Add this line to your manifest android:usesCleartextTraffic="true"
    Retrofit Issue

提交回复
热议问题