Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Issue while creating a debug build ionic.

オープン
#4,088 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
18/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
android, typescript
領域
build-system, cli

調査の方向性

まず ionic cordova build android --debug を再現し、生成された Android プロジェクトで報告された :app:processDebugResources の失敗を調査します。ペイロードは merged_manifests\debug\AndroidManifest.xml と不足している xml/network_security_config リソースを指しています;完了条件は、CLI と生成されたプロジェクトのどちらがこの失敗の原因かを特定することです。

索引モデルが issue の本文から書いたものです。

説明

triage

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'

主要言語
TypeScript
スター
2k
フォーク
681
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ionic-team/ionic-cli のほかの issue

ionic-team/ionic-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。