Android Phonegap The connection to the server was unsuccessful

If you see this error go to your app directory/platforms/android/CordovaLib/src/org/apache/cordova

Find CordovaWebView.java

And find this message there.  A little bit above you should see

final int loadUrlTimeoutValue = Integer.parseInt(this.getProperty("LoadUrlTimeoutValue", "20000"));

Change 20000 to 70000 for example.