Ionic deployment on an Android device

Ionic version: 1.5.5

Cordova Version: 5.0.0

Ionic deployment: 0.1.6

I have followed all the instructions shown here

Then he ran:

ionic build android && ionic run android

      

Later I made a small change in the index.html file and ran

ionic upload

      

Following the log I found a file upload with a tag IONIC_DEPLOY_DOWNLOAD

and as soon as completion is done this error will appear

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

+3


source to share


2 answers


I had the same problem.

During upgrade on android, an internal error is generated when trying to create an already existing directory.

There is a fork in GIT that fixes this issue. ( https://github.com/eweap/ionic-plugins-deploy ).



To work. Run 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!

+3


source


add this to your config.xml

<allow-navigation href="file://*/*"/>

      

and run without liveerver



from:

ionic emulate android

      

0


source







All Articles