How do you fix this error net::ERR_CACHE_MISS in an Android app built using Android Studio?
I am a Windows Phone developer trying to get into Android App development.
I have been working with Android app development for the past couple of days with the latest Android Studio.
I finally got an app that can display an URL . I had an important line missing in my Manifest file and when I corrected this it worked. It has to do with the browser permissions.
=========
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.mywview">
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.MyWView">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
============
Without this element in the XML I was getting this error:
After adding this line to the Manifest I could get it working:
Comments