title: cordova android application error the connection to the server was unsuccessful
body: <p>I have created Android + Cordova project for the purpose of creating and testing cordova plugin but when app opens it gives me the following error.<code>Application Error Connection to server was unsuccessful (file:///android_asset/www/main.html)</code></p>
  
  <p>MainActivity.java</p>
  
  <pre><code>public class MainActivity extends DroidGap {
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      try {
          super.onCreate(savedInstanceState);
          super.setIntegerProperty("loadUrlTimeoutValue", 6000);
          super.loadUrl("file:///android_asset/www/main.html");
      }catch(Exception e){
          e.printStackTrace();
      }
  } }
  </code></pre>
  
  <p>I have added Cordova jar in the lib folder and cordova.js and main.html file in assets/www folder. This error already present on StackOverflow but that doesn't solve my problem.</p>