ionic-team / ionic-team/ionic-cli

[Bug & Workaround] Command 'ionic cordova build android --prod --release' not working

Aperta
#3,108 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
triage
Lingua principale
TypeScript
Stelle
2k
Fork
682
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Ionic version:** (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] **2.x**
[ x] **3.x**
[ ] **4.x**

**I'm submitting a ...** (check one with "x")
[ x] bug report
[ ] feature request

**Current behavior:**

ionic cordova build android --prod --release
This command will not copy all fonts to platforms\android\app\src\main\assets\www\assets\fonts
So when you execute the apk in the phone you will get a blank screen

**Expected behavior:**

Get the apk working intead a blank screen

**WORKAROUND**
Create the apk in 2 steps:
ionic build --prod --release
cordova build android --release

**Other information:**

**Ionic info:** (run `ionic info` from a terminal/cmd prompt and paste output below):

```
cli packages: (C:\Users\Julian.JULIANPC\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@ionic/app-scripts : 3.1.8
Cordova Platforms : android 7.0.0 ios 4.5.4
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.1.1
Node : v9.9.0
npm : 5.8.0
OS : Windows 10
Environment Variables:
ANDROID_HOME : D:\android\android-sdk
Misc:
backend : pro
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.