일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- rxandroid
- java
- hardcoded string search
- RXjava
- android P
- RxJava2
- deprecating the install_referrer
- Android
- Rx자바
- 하드코드검색
- Switch to the Play Referrer API by March 1
- andorid studio
- 안드로이드
- Retrofit2
- RX
Archives
- Today
- Total
Lucky Dog
[안드로이드] Android P (9.0) Error. CLEARTEXT communication 'IP' to not permitted by network security policy 본문
카테고리 없음
[안드로이드] Android P (9.0) Error. CLEARTEXT communication 'IP' to not permitted by network security policy
Poohya 2018. 12. 21. 14:57에러발생 원인
안드로이드 P 버전(9.0) 에서 'HTTP' 를 사용하면 발생.
- java.net.UnknownServiceException :
CLEARTEXT communication to xx.xxx.xxx.xx not permitted by network security policy
- java.io.IOException: Cleartext HTTP traffic to www.google.com not permitted
해결방법
1. AndroidManifest.xml 수정
android:usesCleartextTraffic="true" 추가
<application ... android:usesCleartextTraffic="true" ...> |
2. HTTPS 사용
Comments