title: Critical errors regarding firebase class in android studio
body: <p>I need my app to load a local file, but I've been getting the same result every time I run it, regardless of the permissions I've added to manifest:</p>
  <p><a href="https://i.stack.imgur.com/nigDk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nigDk.png" alt="enter image description here" /></a></p>
  <p>My code (manifest, main activity, security):</p>
  <p>Manifest:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      package=&quot;com.example.recall&quot;
      android:versionCode=&quot;1&quot;
      android:versionName=&quot;1.0&quot;
      tools:ignore=&quot;GradleOverrides&quot;&gt;
  
      &lt;supports-screens
          android:anyDensity=&quot;true&quot;
          android:largeScreens=&quot;true&quot;
          android:normalScreens=&quot;true&quot;
          android:resizeable=&quot;true&quot;
          android:smallScreens=&quot;true&quot;
          android:xlargeScreens=&quot;true&quot; /&gt;
  
      &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.ACCESS_NETWORK_STATE&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.ACCESS_WIFI_STATE&quot; /&gt;
      &lt;uses-permission
          android:name=&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot;
          tools:remove=&quot;android:maxSdkVersion&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.READ_EXTERNAL_STORAGE&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.CAMERA&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.ACCESS_FINE_LOCATION&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.VIBRATE&quot; /&gt;
      &lt;uses-permission android:name=&quot;com.google.android.c2dm.permission.RECEIVE&quot; /&gt;
  
      &lt;application
          android:allowBackup=&quot;true&quot;
          android:icon=&quot;@mipmap/ic_launcher&quot;
          android:label=&quot;@string/app_name&quot;
          android:networkSecurityConfig=&quot;@xml/network_security_config&quot;
          android:roundIcon=&quot;@mipmap/ic_launcher_round&quot;
          android:supportsRtl=&quot;true&quot;
          android:theme=&quot;@style/AppTheme&quot;
          android:usesCleartextTraffic=&quot;true&quot;
          tools:ignore=&quot;ExtraText&quot;
          tools:targetApi=&quot;n&quot;
          android:fullBackupContent=&quot;@xml/backup_descriptor&quot;&gt;
  
  
          &lt;activity android:name=&quot;.MainActivity&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
                  &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;service
              android:name=&quot;.Firebase&quot;
              android:exported=&quot;false&quot;
              android:permission=&quot;TODO&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;com.google.firebase.MESSAGING_EVENT&quot; /&gt;
                  &lt;action android:name=&quot;com.google.firebase.INSTANCE_ID_EVENT&quot; /&gt;
              &lt;/intent-filter&gt;
          &lt;/service&gt;
  
          &lt;meta-data
              android:name=&quot;com.google.android.gms.ads.AD_MANAGER_APP&quot;
              android:value=&quot;true&quot; /&gt;
          &lt;meta-data
              android:name=&quot;com.google.android.gms.version&quot;
              android:value=&quot;@integer/google_play_services_version&quot;
              tools:replace=&quot;android:value&quot; /&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  <p>Main Activity:</p>
  <pre><code>package com.example.recall;
  
  import android.annotation.SuppressLint;
  import android.os.Bundle;
  import android.webkit.WebSettings;
  import android.webkit.WebView;
  import android.webkit.WebViewClient;
  
  import androidx.appcompat.app.AppCompatActivity;
  
  public class MainActivity extends AppCompatActivity {
      private WebView webView;
  
      @SuppressLint(&quot;SetJavaScriptEnabled&quot;)
      @Override
      protected void onCreate(Bundle savedInstanceState){
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          webView = findViewById(R.id.webView);
          webView.setWebViewClient(new WebViewClient());
          webView.loadUrl(&quot;file:///assets/menu.html&quot;);
  
          WebSettings webSettings = webView.getSettings();
          webSettings.setJavaScriptEnabled(true);
  
      }
  
      @Override
      public void onBackPressed(){
          if(webView.canGoBack()){
              webView.goBack();
          }
          else{
              super.onBackPressed();
          }
      }
  }
  </code></pre>
  <p>Firebase</p>
  <pre><code>package com.example.recall;
  
  import android.app.Service;
  
  public abstract class Firebase extends Service {
  }
  </code></pre>
  <p>network_security_config.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;network-security-config&gt;
      &lt;domain-config cleartextTrafficPermitted=&quot;true&quot;&gt;
          &lt;domain includeSubdomains=&quot;true&quot;&gt;your_site_domain.com&lt;/domain&gt;
      &lt;/domain-config&gt;
  &lt;/network-security-config&gt;
  </code></pre>
  <p>These are the recurring errors I get when I run the app:</p>
  <pre><code>2020-07-16 21:07:37.363 239-245/? E/android.system.suspend@1.0-service: Error opening kernel wakelock stats for: wakeup34: Permission denied
  2020-07-16 21:07:37.371 239-245/? E/android.system.suspend@1.0-service: Error opening kernel wakelock stats for: wakeup35: Permission denied
  2020-07-16 21:07:38.320 387-387/? E/netmgr: qemu_pipe_open_ns:62: Could not connect to the 'pipe:qemud:network' service: Invalid argument
  2020-07-16 21:07:38.321 387-387/? E/netmgr: Failed to open QEMU pipe 'qemud:network': Invalid argument
  2020-07-16 21:07:39.256 389-389/? E/wifi_forwarder: qemu_pipe_open_ns:62: Could not connect to the 'pipe:qemud:wififorward' service: Invalid argument
  2020-07-16 21:07:39.256 389-389/? E/wifi_forwarder: RemoteConnection failed to initialize: RemoteConnection failed to open pipe
  **2020-07-16 21:08:30.176 2343-2343/? E/FirebaseInstanceId: binding to the service failed**
  </code></pre>
  <p>Numerous sources state that the problem is generally resolved with adding the following:</p>
  <pre><code>&lt;uses-permission android:name=&quot;android.permission.READ_EXTERNAL_STORAGE&quot;/&gt;
  </code></pre>
  <p>but that hasn't worked for me.</p>
  <p>Question: What should I add to the Firebase class?</p>
  <p>Important notes:
  I am using Android Studio on a Mac Sierra OS X, and the only emulator I've used is a Pixel 2 API 30.</p>