Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 642
Roberto von Schoettler Avatar asked Dec 13 '25 14:12

Roberto von Schoettler


1 Answers

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!

like image 89
Malaca Avatar answered Dec 16 '25 23:12

Malaca



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!