ionic-team / ionic-team/ionic-cli

Execution failed for task ':app:packageDebug'. Couldn't delete stale output file

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

描述

**Description:**

ionic cordova emulator android -l

**Steps to Reproduce:**

**Output:**

> ng.cmd run app:ionic-cordova-serve --host=localhost --port=8100 --platform=android
[ng] chunk {} 0.js, 0.js.map () 31.2 kB [rendered]
[ng] WARNING in C:\Users\yongzhe.han\Desktop\projects\ionic-cordova\src\test.ts is part of the TypeScript compilation but it's unused.
[ng] Add only entry points to the 'files' or 'include' properties in your tsconfig.
[ng] WARNING in C:\Users\yongzhe.han\Desktop\projects\ionic-cordova\src\environments\environment.prod.ts is part of the TypeScript compilation but it's unused.
[ng] Add only entry points to the 'files' or 'include' properties in your tsconfig.
[ng] chunk {common} common.js, common.js.map (common) 14.7 kB [rendered]
[ng] chunk {cordova} cordova.js, cordova.js.map (cordova) 61.8 kB [entry] [rendered]
[ng] chunk {focus-visible-15ada7f7-js} focus-visible-15ada7f7-js.js, focus-visible-15ada7f7-js.js.map (focus-visible-15ada7f7-js) 2.11 kB [rendered]
[ng] chunk {home-home-module} home-home-module.js, home-home-module.js.map (home-home-module) 111 kB [rendered]
[ng] chunk {input-shims-4f0dbb39-js} input-shims-4f0dbb39-js.js, input-shims-4f0dbb39-js.js.map (input-shims-4f0dbb39-js) 16.3 kB [rendered]
[ng] chunk {keyboard-dd970efc-js} keyboard-dd970efc-js.js, keyboard-dd970efc-js.js.map (keyboard-dd970efc-js) 6.16 kB [rendered]
[ng] chunk {main} main.js, main.js.map (main) 19.8 kB [initial] [rendered]
[ng] chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 268 kB [initial] [rendered]
[ng] chunk {polyfills-core-js} polyfills-core-js.js, polyfills-core-js.js.map (polyfills-core-js) 92.4 kB [rendered]
[ng] chunk {polyfills-css-shim} polyfills-css-shim.js, polyfills-css-shim.js.map (polyfills-css-shim) 10.5 kB [rendered]
[ng] chunk {polyfills-dom} polyfills-dom.js, polyfills-dom.js.map (polyfills-dom) 38.5 kB [rendered]
[ng] chunk {runtime} runtime.js, runtime.js.map (runtime) 9.53 kB [entry] [rendered]
[ng] chunk {shadow-css-c63963b5-js} shadow-css-c63963b5-js.js, shadow-css-c63963b5-js.js.map (shadow-css-c63963b5-js) 15.9 kB [rendered]
[ng] chunk {status-tap-0b3e89c4-js} status-tap-0b3e89c4-js.js, status-tap-0b3e89c4-js.js.map (status-tap-0b3e89c4-js) 1.6 kB [rendered]
[ng] chunk {styles9m} styles.js, styles.js.map (styles) 94.9 kB [initial] [rendered]
[ng] chunk {swipe-back-0a6a44c8-js} swipe-back-0a6a44c8-js.js, swipe-back-0a6a44c8-js.js.map (swipe-back-0a6a44c8-js) 3.05 kB [rendered]
[ng] chunk {swiper-bundle-95afeea2-js} swiper-bundle-95afeea2-js.js, swiper-bundle-95afeea2-js.js.map (swiper-bundle-95afeea2-js) 200 kB [rendered]
[ng] chunk {tap-click-252af35a-js} tap-click-252af35a-js.js, tap-click-252af35a-js.js.map (tap-click-252af35a-js) 6.22 kB [rendered]
[ng] chunk {vendor} vendor.js, vendor.js.map (vendor) 4.79 MB [initial] [rendered]
[ng] Date: 2020-09-08T07:16:57.447Z - Hash: 3b6d582eb8d23a65661b - Time: 8142ms
[INFO] ... and 42 additional chunks
[ng] : Compiled successfully.

[INFO] Development server running!

Local: http://localhost:8100

Use Ctrl+C to quit this process

> cordova.cmd build android
[cordova]
[cordova] FAILURE: Build failed with an exception.
[cordova]
[cordova] * What went wrong:
[cordova] Execution failed for task ':app:packageDebug'.
[cordova] > Couldn't delete stale output file
[cordova]
[cordova] * Try:
[cordova] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[cordova]
[cordova] * Get more help at https://help.gradle.org
[cordova]
[cordova] BUILD FAILED in 2s
[cordova] Command failed with exit code 1: C:\Users\yongzhe.han\Desktop\projects\ionic-cordova\platforms\android\gradlew cdvBuildDebug -b C:\Users\yongzhe.han\Desktop\projects\ionic-cordova\platforms\android\build.gradle
[ERROR] An error occurred while running subprocess cordova.

cordova.cmd build android exited with exit code 1.

Re-running this command with the --verbose flag may provide more information.

**My `ionic info`:**

```

```

**Other Information:**

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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