Cant run ionic cordova build --release android


#1

After install crosswalk its showing this Error :sweat:

ionic cordova build --release android
Running app-scripts build: --iscordovaserve --externalIpRequired --nobrowser

[21:34:35]  build dev started ...
[21:34:35]  clean started ...
[21:34:36]  clean finished in 4 ms
[21:34:36]  copy started ...
[21:34:36]  transpile started ...
[21:34:37]  transpile finished in 1.91 s
[21:34:37]  preprocess started ...
[21:34:37]  deeplinks started ...
[21:34:37]  deeplinks finished in 15 ms
[21:34:37]  preprocess finished in 18 ms
[21:34:37]  webpack started ...
[21:34:38]  copy finished in 2.07 s
[21:34:44]  webpack finished in 6.84 s
[21:34:44]  sass started ...
[21:34:45]  sass finished in 745 ms
[21:34:45]  postprocess started ...
[21:34:45]  postprocess finished in 4 ms
[21:34:45]  lint started ...
[21:34:45]  build dev finished in 9.55 s
> cordova build android --release
| Running command [21:34:55]  lint finished in 9.61 s
× Running command - failed!

[ERROR] Cordova encountered an error.
        You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova build android --release (exit code 1):

        (truncated) ... seBuild UP-TO-DATE
        :CordovaLib:checkReleaseManifest
        :CordovaLib:prepareReleaseDependencies
        :CordovaLib:compileReleaseAidl
        :CordovaLib:compileReleaseNdk UP-TO-DATE
        :CordovaLib:copyReleaseLint UP-TO-DATE
        :CordovaLib:mergeReleaseShaders
        :CordovaLib:compileReleaseShaders
        :CordovaLib:generateReleaseAssets
        :CordovaLib:mergeReleaseAssets
        :CordovaLib:mergeReleaseProguardFiles
        :CordovaLib:packageReleaseRenderscript UP-TO-DATE
        :CordovaLib:compileReleaseRenderscript
        :CordovaLib:generateReleaseResValues
        :CordovaLib:generateReleaseResources
        :CordovaLib:packageReleaseResources
        :CordovaLib:processReleaseManifest
        :CordovaLib:generateReleaseBuildConfig
        :CordovaLib:processReleaseResources
        :CordovaLib:generateReleaseSources
        :CordovaLib:incrementalReleaseJavaCompilationSafeguard
        :CordovaLib:compileReleaseJavaWithJavac
        :CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous
        execution, etc.).
        Note: Some input files use or override a deprecated API.
        Note: Recompile with -Xlint:deprecation for details.
        :CordovaLib:processReleaseJavaRes UP-TO-DATE
        :CordovaLib:transformResourcesWithMergeJavaResForRelease
        :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
        :CordovaLib:mergeReleaseJniLibFolders
        :CordovaLib:transformNative_libsWithMergeJniLibsForRelease
        :CordovaLib:transformNative_libsWithSyncJniLibsForRelease
        :CordovaLib:bundleRelease
        :prepareComAndroidSupportSupportCompat2600Alpha1Library
        :prepareComAndroidSupportSupportCoreUi2600Alpha1Library
        :prepareComAndroidSupportSupportCoreUtils2600Alpha1Library
        :prepareComAndroidSupportSupportFragment2600Alpha1Library
        :prepareComAndroidSupportSupportMediaCompat2600Alpha1Library
        :prepareComAndroidSupportSupportV42600Alpha1Library
        :prepareComGoogleAndroidGmsPlayServicesAds1101Library
        :prepareComGoogleAndroidGmsPlayServicesAdsLite1101Library
        :prepareComGoogleAndroidGmsPlayServicesBase1101Library
        :prepareComGoogleAndroidGmsPlayServicesBasement1101Library
        :prepareComGoogleAndroidGmsPlayServicesClearcut1101Library
        :prepareComGoogleAndroidGmsPlayServicesGass1101Library
        :prepareComGoogleAndroidGmsPlayServicesSafetynet1101Library
        :prepareComGoogleAndroidGmsPlayServicesTasks1101Library
        :prepareOrgApacheCordovaCordovaLib623ReleaseLibrary
        :prepareOrgXwalkXwalk_core_library23535894Library
        :prepareArmv7ReleaseDependencies
        :compileArmv7ReleaseAidl
        :compileArmv7ReleaseRenderscript
        :generateArmv7ReleaseBuildConfig
        :mergeArmv7ReleaseShaders
        :compileArmv7ReleaseShaders
        :generateArmv7ReleaseAssets
        :mergeArmv7ReleaseAssets
        :createXwalkCommandLineFileArmv7Release
        :generateArmv7ReleaseResValues
        :generateArmv7ReleaseResources
        :mergeArmv7ReleaseResources
        Error: Failed to crunch file C:\Users\SAGAR\Desktop\mobile-apps\DhakaBusRoute\android
        4\platforms\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\11.0.1
\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png
        into C:\Users\SAGAR\Desktop\mobile-apps\DhakaBusRoute\android
        4\platforms\android\build\intermediates\res\merged\armv7\release\drawable-xxhdpi-v4\common_google_sig
nin_btn_icon_light_normal_background.9.png
        :mergeArmv7ReleaseResources FAILED

        FAILURE: Build failed with an exception.

        * What went wrong:
        Execution failed for task ':mergeArmv7ReleaseResources'.
        > Error: Failed to crunch file C:\Users\SAGAR\Desktop\mobile-apps\DhakaBusRoute\android
        4\platforms\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\11.0.1
\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png
        into C:\Users\SAGAR\Desktop\mobile-apps\DhakaBusRoute\android
        4\platforms\android\build\intermediates\res\merged\armv7\release\drawable-xxhdpi-v4\common_google_sig
nin_btn_icon_light_normal_background.9.png

        * Try:
        Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more
        log output.

        BUILD FAILED

        Total time: 14.349 secs
        Error: cmd: Command failed with exit code 1 Error output:
        Note: Some input files use or override a deprecated API.
        Note: Recompile with -Xlint:deprecation for details.
        Note: Some input files use or override a deprecated API.
        Note: Recompile with -Xlint:deprecation for details.

        FAILURE: Build failed with an exception.

        * What went wrong:
        Execution failed for task ':mergeArmv7ReleaseResources'.
        > Error: Failed to crunch file C:\Users\SAGAR\Desktop\mobile-apps\DhakaBusRoute\android
        4\platforms\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\11.0.1
\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png
        into C:\Users\SAGAR\Desktop\mobile-apps\DhakaBusRoute\android
        4\platforms\android\build\intermediates\res\merged\armv7\release\drawable-xxhdpi-v4\common_google_sig
nin_btn_icon_light_normal_background.9.png

        * Try:
        Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more
        log output.

#2

Search for the file name and error message here in the forum. This was posted a few times already.