ionic-team / ionic-cli

The Ionic command-line interface
MIT License
2k stars 654 forks source link

Issue while creating a debug build ionic. #4088

Open saifhimayat opened 5 years ago

saifhimayat commented 5 years ago

Description: I am creating a debug build for android.

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.

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.

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'

imhoffd commented 5 years ago

Does resources/android/xml/network_security_config.xml exist?