'mergeDebugResources' isuue


#1

when i’m try to build my app showing this error.

        FAILURE: Build failed with an exception.

        * What went wrong:
        Execution failed for task ':mergeDebugResources'.
        > Error: Failed to crunch file
        E:\IONIC_2\ionstore2\app\platforms\android\build\intermedia
tes\exploded-aar\com.google.android.gms\play-services-base\11.2.2\res\drawable-x
xhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png

ionic info:

cli packages: (C:\Users\Sourav\AppData\Roaming\npm\node_modules)


    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

System:

    Node : v8.6.0
    npm  : 5.5.1
    OS   : Windows 7

Misc:

    backend : pro

please guide me.


#2

Delete the build folder under the android root folder and add this lines of code to your build.grade file

configurations.all {
    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
        def requested = details.requested
        if (requested.group == 'com.android.support') {
            if (!requested.name.startsWith("multidex")) {
                details.useVersion '25.3.1'
            }
        }
    }
}

After run ionic cordova build android