Search code examples
cordovaionic-frameworkcordova-plugins

Ionic Deploy on Android device


Ionic version: 1.5.5

Cordova version: 5.0.0

Ionic deploy: 0.1.6

I have followed all the instructions shown here

Afterwards, ran:

ionic build android && ionic run android

Later on, did a small edit on the index.html file and ran

ionic upload

Following the log, i found some file download tagged as IONIC_DEPLOY_DOWNLOAD, and as soon as the extract is complete, this error pops out

06-18 16:47:47.771: D/SystemWebViewClient(7128):
CordovaWebViewClient.onReceivedError: Error code=-1
Description=net::ERR_FILE_NOT_FOUND 
URL=file:///data/data/com.org.app/app_eddaae501776ab76c86f69073/index.html



06-18 16:47:47.921: I/chromium(7128): 
[INFO:CONSOLE(0)] "Not allowed to load local resource:
file:///android_asset/webkit/android-weberror.png", 
source: data:text/html,chromewebdata (0)

enter image description here

EDIT

Added log error

enter image description here


Solution

  • I had the same problem.

    During the update on android, an internal error is generated by trying to create a directory that already exists.

    In GIT has a fork that corrects this problem. (https://github.com/eweap/ionic-plugins-deploy).

    To work. Execute the following commands:

    $ Cord plug rm com.ionic.deploy
    $ Cord plugin add https://github.com/eweap/ionic-plugins-deploy
    $ Ionic platform removes android
    $ Ionic platform add android
    $ Ionic run android
    

    Done!