ionic-team / ionic-team/ionic-cli

Console.error before LAUNCH SUCCESS during build for Android

Open
#3,016 0 comments 0 reactions 0 assignees View on GitHub
needs investigation
Dominant language
TypeScript
Stars
2k
Forks
682
PR merge metrics
No merged PRs in 30d

Description

**Description:**
After running the command:

`ionic cordova run android -lc`

There is a console.error shown but it is not possible to read the error.
Apparently is a ionic-cli error log because it is shown before my app starts (I have logged constructor and device ready)

```
BUILD SUCCESSFUL

Total time: 12.527 secs
Built the following apk(s):
/home/pablo/projects/fpt3/platforms/android/build/outputs/apk/android-debug.apk

ANDROID_HOME=/home/pablo/Android/Sdk
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
No target specified, deploying to device 'BY900E5BZV'.

Skipping build...
Built the following apk(s):
/home/pablo/projects/fpt3/platforms/android/build/outputs/apk/android-debug.apk

Using apk: /home/pablo/projects/fpt3/platforms/android/build/outputs/apk/android-debug.apk

Package name: com.pgapps.fpt
[15:26:28] console.error: Error [object Object]
LAUNCH SUCCESS

[15:26:36] console.log: app constructor
[15:26:36] console.log: Angular is running in the development mode. Call enableProdMode() to enable the production
mode.
[15:26:36] console.log: deviceready has not fired after 5 seconds.
[15:26:37] console.log: Ionic Native: deviceready event fired after 4539 ms
[15:26:37] console.log: app READY
```

**Steps to Reproduce:**

**Output:**

**My `ionic info`:**

```
cli packages: (/usr/lib/node_modules)

@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 6.5.0

local packages:

@ionic/app-scripts : 3.0.1
Cordova Platforms : android 6.1.2
Ionic Framework : ionic-angular 3.9.2

System:

Android SDK Tools : 25.2.5
Node : v6.13.1
npm : 3.10.10
OS : Linux 4.4

Environment Variables:

ANDROID_HOME : /home/pablo/Android/Sdk

Misc:

backend : pro
```

**Other Information:**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.