ionic-team / ionic-team/ionic-cli

Console.error before LAUNCH SUCCESS during build for Android

Ouverte
#3,016 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
needs investigation
Langage dominant
TypeScript
Étoiles
2k
Forks
682
Métriques de merge des PR
Aucune PR mergée en 30 j

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:**

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.