ionic-team / ionic-team/ionic-cli
Execution failed for task ':app:packageDebug'. Couldn't delete stale output file
- 主要語言
- 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:**
貢獻指南
研究方向
Start by reproducing `ionic cordova emulator android -l`, then inspect the generated `platforms/android/build.gradle` invocation with Gradle `--stacktrace` or `--info` output. Compare the failing `:app:packageDebug` step with a successful Android build; done means the cause of the stale output deletion failure is identified and the build completes.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- android, angular, typescript
- 領域
- build-system, cli, mobile
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 20/100