티스토리 뷰
Stack Overflow에 자주 검색, 등록되는 문제들과 제가 개발 중 찾아 본 문제들 중에서 나중에도 찾아 볼 것 같은 문제들을 정리하고 있습니다.
Stack Overflow에서 가장 먼저 확인하게 되는 가장 높은 점수를 받은 Solution과 현 시점에 도움이 될 수 있는 가장 최근에 업데이트(최소 점수 확보)된 Solution을 각각 정리하였습니다.
아래 word cloud를 통해 이번 포스팅의 주요 키워드를 미리 확인하세요.
Android Webview gives net::ERR_CACHE_MISS message
웹뷰 net::ERR_CACHE_MISS 오류 메시지
문제 내용
I built a web app and wants to create an android app that has a webview that shows my web app. After following the instructions from Google Developer to create an app, I successfully installed it on my phone with Android 5.1.1.
나는 웹 앱을 만들었고 내 웹 앱을 보여주는 웹 뷰가 있는 안드로이드 앱을 만들고 싶다. 구글 개발자의 지침에 따라 앱을 만든 후 안드로이드 5.1.1로 휴대폰에 성공적으로 설치했다.
However, when I run the app for the first time, the webview shows the message:
그러나 앱을 처음 실행하면 웹 보기에 다음과 같은 메시지가 표시됩니다.
Web page not available
The Web page at [Lorem Ipsum URL] could not be loaded as:
net::ERR_CACHE_MISS
웹 페이지를 사용할 수 없음
[Lorem Ipsum URL]의 웹 페이지를 다음과 같이 로드할 수 없습니다.
net::ERR_CACHE_MISS
높은 점수를 받은 Solution
I solved the problem by changing my AndroidManifest.xml
.
나는 안드로이드 매니페스트.xml을 변경하여 문제를 해결했다.
old : <uses-permission android:name="android.permission.internet"/>
new: <uses-permission android:name="android.permission.INTERNET"/>
가장 최근 달린 Solution
I ran to a similar problem and that was just because of the extra spaces:
나도 비슷한 문제에 부딪혔는데, 그것은 단지 공백 때문이었다.
<uses-permission android:name="android.permission.INTERNET "/>
which when removed works fine:
제거하면 정상적으로 작동합니다.
<uses-permission android:name="android.permission.INTERNET"/>
출처 : https://stackoverflow.com/questions/30637654/android-webview-gives-neterr-cache-miss-message
'개발 > 안드로이드' 카테고리의 다른 글
기본 앱을 사용하지 않고 JavaMail API로 이메일 보내기 (0) | 2022.12.01 |
---|---|
패키지 이름과 일치하는 클라이언트를 찾을 수 없습니다(Google Analytics) (0) | 2022.12.01 |
Fragment에서 findViewById 사용하기 (0) | 2022.12.01 |
WebView에서 JavaScript 함수 호출 (0) | 2022.12.01 |
"Unable to add window — token null is not for an application” 오류 수정하기 (0) | 2022.12.01 |