ionic-team / ionic-team/ionic-cli
Issue while creating a debug build ionic.
- 主要語言
- TypeScript
- 星號
- 2k
- 分支
- 681
- PR 合併指標
- 30 天內沒有已合併 PR
描述
**Description:**
I am creating a debug build for android.
- ionic cordova platform add android = successfully executed
- ionic cordova build android --debug = throwing error
**Steps to Reproduce:**
ionic cordova build android --debug
**Output:**
Note: Recompile with -Xlint:deprecation for details.
> Task :CordovaLib:compileDebugJavaWithJavac
> Task :CordovaLib:processDebugJavaRes NO-SOURCE
> Task :CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
> Task :app:javaPreCompileDebug
> Task :app:mainApkListPersistenceDebug
> Task :app:generateDebugResValues
> Task :app:generateDebugResources
> Task :app:mergeDebugResources
> Task :app:createDebugCompatibleScreenManifests
> Task :app:processDebugManifest
FAILURE: Build failed with an exception.
* What went wrong:
> Task :app:processDebugResources FAILED
23 actionable tasks: 23 executed
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
warn: removing resource io.ionic.starter:string/com_facebook_loginview_logged_in_using_facebook_f1gender without required default value.
C:\Users\Saif\app_source_code\ionicecommerce_muzammul\platforms\android\app\build\intermediates\merged_manifests\debug\AndroidManifest.xml:69: AAPT: error: resource xml/network_security_config (aka io.ionic.starter:xml/network_security_config) not found.
error: failed processing manifest.
* Try:
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.
* Get more help at https://help.gradle.org
BUILD FAILED in 7s
C:\Users\Saif\app_source_code\ionicecommerce_muzammul\platforms\android\gradlew: Command failed with exit code 1 Error output:
Note: C:\Users\Saif\app_source_code\ionicecommerce_muzammul\platforms\android\CordovaLib\src\org\apache\cordova\engine\SystemCookieManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
warn: removing resource io.ionic.starter:string/com_facebook_loginview_logged_in_using_facebook_f1gender without required default value.
C:\Users\Saif\app_source_code\ionicecommerce_muzammul\platforms\android\app\build\intermediates\merged_manifests\debug\AndroidManifest.xml:69: AAPT: error: resource xml/network_security_config (aka io.ionic.starter:xml/network_security_config) not found.
error: failed processing manifest.
* Try:
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.
* Get more help at https://help.gradle.org
BUILD FAILED in 7s
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd build android --debug exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
**My `ionic info`:**
Error: EPERM: operation not permitted, open 'C:\Users\vikas\AppData\Local\Android\Sdk\tools\source.properties'
貢獻指南
研究方向
首先重現 `ionic cordova build android --debug`,並檢查產生的 Android 專案中回報的 `:app:processDebugResources` 失敗。payload 指向 `merged_manifests\debug\AndroidManifest.xml` 和缺少的 `xml/network_security_config` 資源;完成條件是確定該失敗是由 CLI 還是產生的專案所造成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- android, typescript
- 領域
- build-system, cli
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 18/100