안드로이드 SDK 21 이상부터 웹뷰 정책이 바뀜

 

http 링크로 호출 하는 경우 호출이 되지 않음

 

해결

-----------------------------------------------------

1. AndroidManifest.xml 수정

 

<appllication 

android:networkSecurityConfig="@xml/network_security_config">

...

</appllication>

 

2. xml 추가

network_security_config.xml

 

<network-security-config>
  <domain-config cleartextTrafficPermitted="true">
    <domain includeSubdomains="true">도메인</domain>
  </domain-config>
</network-security-config>

-------------------------------------------------------

 

'개발 > ANDROID' 카테고리의 다른 글

split 로 문자열 자를때 유의사항  (0) 2017.07.03
안드로이드 오류 정리 (계속 업데이트)  (0) 2017.06.30

개발 중 발생한 오류 및 해결 방법 정리



2017-06-30

- 상황 : 안드로이드 스튜디오 버전업 후 기존 프로젝드 Run 했을때 아래와 같은 오류 발생

- 오류 : This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Run (or updating either the IDE or the Gradle plugin to the latest version)

- 해결 : Build > Clean Project





'개발 > ANDROID' 카테고리의 다른 글

안드로이드 SDK 21 이상 http 링크 호출  (0) 2019.04.26
split 로 문자열 자를때 유의사항  (0) 2017.07.03

+ Recent posts