- 증상
targetSdkVersion 29에서 Volley 사용시 정상동작하던 Volley 동작이 ErrorListener 발생함
defaultConfig {
...
targetSdkVersion 29
...
}
- 원인
- 해결책
manifest.xml에 application 항목에 android:usesCleartextTraffic="true" 추가하면 정상동작 하는것을 확인할 수 있다.
<application
...
android:usesCleartextTraffic="true"
...>
</application>
- 참고
https://noobsplanet.com/index.php?threads/solved-volley-library-not-working-on-android-9-0-pie.155/
[SOLVED] Volley Library Not Working On Android 9.0 Pie?
If you get message like this on your logcat java.lang.NoClassDefFoundError:failed resolution of :Lorg/apache/http/ProtocolVersion then you should add the following lines to manifest. And add the line android:usesCleartextTraffic="true" inside application t
noobsplanet.com
why volley library not working on android 9(API 28) where as its working fine on android 8(API 27)?
I am developing an app with volley library. Everything is working fine below android 9.0. But not in 9.0 I am using implementation 'com.android.volley:volley:1.1.0' targetSdkVersion 28
stackoverflow.com