title: Android app not installed when network is available
body: <p>I'm new to android developing. I created a simple app that loads a url by WebView. It works fine on emulator and most devices. But in some cases, specially whit devices that run android lower than 6, when network is available I get the error "app not installed". But after disabling wifi and data, app installs without a problem</p>
  
  <p>I tried everything I found on the web. Including:
  Change signature version.
  Uninstall app completely from target device.
  Uninstall old jdk an install the last version. </p>
  
  <p>This is how i defined internet permission in AndroidManifest.xml</p>
  
  <pre><code> &lt;uses-permission android:name="android.permission.INTERNET" /&gt; 
  </code></pre>
  
  <p>And this how i defined signing config</p>
  
  <pre><code> signingConfigs {
        release {
          storeFile file("myKey.jks")
          storePassword '*******'
          keyAlias 'alias'
          keyPassword '****'
          v2SigningEnabled false
  
      }
  }
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
          signingConfig signingConfigs.release
      }
      debug {
          debuggable true
      }
  }
  </code></pre>
  
  <p>And this is how i loaded the webview:</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
      private WebView myWebView;
      @Override
      protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      myWebView = (WebView)findViewById(R.id.webViewOne);
      WebSettings webSettings = myWebView.getSettings();
      webSettings.setJavaScriptEnabled(true);
      myWebView.loadUrl("http://www.example.com/");
      myWebView.setWebViewClient(new WebViewClient());
  }
  
     @Override
     public void onBackPressed() {
         if (myWebView.canGoBack()){
          myWebView.goBack();
         }else {super.onBackPressed();}
  
     }
  
  }
  </code></pre>
  
  <p>I chose minSdkVersion 19 and targetSdkVersion 29. I expected that the app runs on android 4.4 and above without a problem. But in some devices that run android 5.1 i get the error "app not installed" when the wify and data is available</p>