Application Error - The connection to the server was unsuccessful. (file:///android_asset/www/index.html)

后端 未结 16 1949
小蘑菇
小蘑菇 2020-11-28 01:28

App Dies On Startup (connection to the server was unsuccessful)

I have an Android application that I\'m writing using PhoneGap BUILD. The app was working fine earli

16条回答
  •  鱼传尺愫
    2020-11-28 02:17

    Check you index.html file. If you use external resources, that not available when you run application then you can get this error.

    In my case I forgot to delete link on debugger script (weinre).

    
    

    So application worked on emulator because http://192.168.0.102:8080/ was on my localhost and available for emulator.

    But when I setup application on mobile phone I had same error, because 192.168.0.102 was not available from mobile network.

提交回复
热议问题