안드로이드 29 업데이트 웹뷰 내용이 안보이는 경우
가져오지 못해서 안보이는 경우도 있으니 참고하세요.
안드로이드 29 업데이트 하면서 생기는 문제는 여러가지 인데요.
간단히 해결되는 경우라고 보시면 됩니다.
1. build.gradle (:app)
:
targetSdkVersion 29
:
compileSdkVersion 29
29로 업데이트 하면 개발자 콘솔에 올릴수 있는 조건이 되는데요.
http 로 불러오는 경우에 못 불러 오는 증상이 있는 경우가 있습니다.
이런 경우에 두군데 확인해보세요.
2. AndroidManufest.xml
android:usesCleartextTraffic="true" 를 추가 합니다.
위치는
<application
android:name=".App"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:usesCleartextTraffic="true"
3. 웹뷰 못 불러 오는 경우는
loadData 이 부분을 loadDataWithBaseURL 바꿔줍니다.
아래 형식은 참고하세요.
//web_view_content.loadData(content, "text/html; charset=utf-8", "utf-8");
web_view_content.loadDataWithBaseURL(null, content, "text/html; charset=utf-8", "utf-8",null);
'안드로이드' 카테고리의 다른 글
앱 관련 문제 : 사용자 평점, 리뷰, 설치 수 정책 관련 (0) | 2022.01.12 |
---|---|
안드로이드 앱 제목, 아이콘 작성 방법 (0) | 2021.10.15 |
개발자님. APP 관련 문의 드립니다. 저도 메일 받음요^^ (0) | 2020.11.11 |
빌드시 --warning-mode all 경고 없애기 (0) | 2020.10.07 |
구글 메일 Gmail smtp 사용시 설정 방법 (0) | 2020.05.28 |
댓글