ionic-team / ionic-team/ionic-cli

Issue while creating a debug build ionic.

Abierto
#4,088 1 comentario 0 reacciones 0 asignados Ver en GitHub
triage
Lenguaje dominante
TypeScript
Estrellas
2k
Forks
682
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.