title: WebView showing ERR_CLEARTEXT_NOT_PERMITTED although site is HTTPS
body: <p>I'm starting to work on an app on Android, so I don't have much. All I have is just a WebView so far. I created the project in Android Studio, and my project got set as an Android InstantApp. I'm not sure why/how, but my guess is that I overlooked an option for it when creating the project.</p>
  
  <p>I was getting an error from the WebView saying net::ERR_CLEARTEXT_NOT_PERMITTED. When I googled the error, I saw that when an app is an InstantApp, WebViews can only load sites that are HTTPS, and cannot load an HTTP site.</p>
  
  <p>The purpose of this app is to be an extremely simple Flash player for only one site. This is to have better performance running a game that requires Flash. This game is at darkorbit.com, which is HTTPS.</p>
  
  <p>MainActivity.java:</p>
  
  <pre><code>package com.tylerr147.darkorbit;
  
  import android.content.ComponentName;
  import android.content.Intent;
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import android.view.View;
  import android.webkit.WebSettings;
  import android.webkit.WebView;
  
  public class MainActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          WebView wv = findViewById(R.id.webView1);
          wv.loadUrl("https://darkorbit.com/");
          wv.setWebViewClient(new CustomWebViewClient());
          WebSettings webSettings = wv.getSettings();
          webSettings.setJavaScriptEnabled(true);
          webSettings.setPluginState(WebSettings.PluginState.ON);
  
      }
  }
  </code></pre>
  
  <p>and CustomWebViewClient.java</p>
  
  <pre><code>package com.tylerr147.darkorbit;
  
  import android.webkit.WebView;
  import android.webkit.WebViewClient;
  
  public class CustomWebViewClient extends WebViewClient {
      @Override
      public boolean shouldOverrideUrlLoading(WebView view, String url) {
          view.loadUrl(url);
          return true;
      }
  }
  </code></pre>
  
  <p>My question:
  How can I disable my app as an InstantApp, or how can I get this WebView to display the site?</p>
  
  <p>I feel like it's important I mention a few other details too:
  In the app, where it is showing the WebView, it also says "The webpage at <a href="http://darkorbit.com/" rel="noreferrer">http://darkorbit.com/</a>" could not be loaded because:
  net::ERR_CLEARTEXT_NOT_PERMITTED</p>
  
  <p>Notice that is says "... site at <a href="http://darkorbit.com/" rel="noreferrer">http://darkorbit.com/</a> ...", and not "... site at <a href="https://darkorbit.com/" rel="noreferrer">https://darkorbit.com/</a> ..." even though the string for the URL is hardcoded, and says "<a href="https://darkorbit.com/" rel="noreferrer">https://darkorbit.com/</a>". Also, I am testing the app on an emulator set up as a Google Pixel 2 running Android 9.</p>
  
  <p>Any help would be appreciated. Thank you.</p>