ionic-team / ionic-team/ionic-cli
Issue while creating a debug build ionic.
- Lingua principale
- TypeScript
- Stelle
- 2k
- Fork
- 682
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
**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'
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.