ionic-team / ionic-team/ionic-cli

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

未关闭
#3,108 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
triage
主要语言
TypeScript
星标
2k
派生
682
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。