ionic-team / ionic-team/ionic-cli

Issue while creating a debug build ionic.

Đang mở
#4,088 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
triage
Ngôn ngữ chính
TypeScript
Star
2k
Fork
682
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.