Impossible to deploy on android device, infinite DOT loop

Hi there,

I’m meeting a big problem because I can’t test my app with native functionalities on my Android Phone…
When I use sudo ionic cordova run andoid --device in the CLI,
the result is an infinity dot spam (. . . . . . . . . . . .) and nothing happens on my device…

There is the screenshots :

Many unused property then …

There is my environment version :

global packages:

@ionic/cli-utils : 1.1.2
Cordova CLI      : 7.0.1
Ionic CLI        : 3.1.2

local packages:

@ionic/app-scripts              : 1.3.7
@ionic/cli-plugin-cordova       : 1.1.2
@ionic/cli-plugin-ionic-angular : 1.1.2
Ionic Framework                 : ionic-angular 3.2.1


Node       : v6.10.2
OS         : macOS Sierra
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed

Thank’s in advance, I hope someone find an answer… I’m really in need for a project.
Let me know if you need more informations

1 Like

if you need to run the commands with sudo, you installed something wrong. but this is not a problem.

when i recognize it correctly --> let the dots flow ;).

this is something like an indicator, that something is happening.

1 Like

Without the sudo :

				throw err;

Error: EACCES: permission denied, open '/Users/antoineuldry/.config/configstore/insight-cordova.json'
You don't have access to this file.

    at Error (native)
    at Object.fs.openSync (fs.js:641:18)
    at Object.fs.readFileSync (fs.js:509:33)
    at Object.get (/usr/local/lib/node_modules/cordova/node_modules/insight/node_modules/configstore/index.js:34:26)
    at Object.Configstore (/usr/local/lib/node_modules/cordova/node_modules/insight/node_modules/configstore/index.js:27:44)
    at new Insight (/usr/local/lib/node_modules/cordova/node_modules/insight/lib/index.js:38:34)
    at Object.<anonymous> (/usr/local/lib/node_modules/cordova/src/telemetry.js:37:15)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)

[ERROR] Cordova encountered an error.
        You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova run android --device (exit code 1).

But what is happening… :sob:

like i said if you need to run it with sudo you installed ionic or some dependency wrong… no need to test it ^^.

be patient and wait. maybe your build takes so long. or try it on another machine

1 Like

Cordova seems to think it needs to download Gradle 3.3 for your system, and for whatever reason this doesn’t finish or takes too long.

Do you already have Gradle installed?
Can you run cordova platform list please?
Can you run cordova requirements in your project directory?

There is what you asked for :

Cordova platform list :

Installed platforms:
  android 6.2.3
  ios 4.4.0
  windows 5.0.0
Available platforms:
  blackberry10 ~3.8.0 (deprecated)
  browser ~4.1.0
  osx ~4.0.1
  webos ~3.7.0

Cordova requirements :

Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-25
Gradle: installed /Applications/Android

Requirements check results for ios:
Apple OS X: installed darwin
Xcode: not installed
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

ios-deploy: not installed
ios-deploy was not found. Please download, build and install version 1.9.0 or greater from into your path, or do 'npm install -g ios-deploy'
CocoaPods: not installed
CocoaPods was not found. Please install version 1.0.1 or greater from

Requirements check results for windows:
Windows OS: not installed
Cordova tooling for Windows requires Windows OS to build project
Error: Some of requirements check failed

Finally working !

I think that the problem was coming from my device. I was waiting for the alert that ask :
Allow USB debugging?..

But it didn’t asked, and today it did. I don’t really know how and why. I had revoke the usb debugging yesterday without any results.

Anyway, thanks for your help guys :slight_smile:

1 Like