Irakli
Irakli

Reputation: 58

Execution failed for task ':transformClassesWithDexForDebug'. ionic 3 please helpp

BUILD FAILED

Total time: 1 mins 10.277 secs FAILURE: Build failed with an exception.

FAILURE: Build failed with an exception.

Upvotes: 0

Views: 5065

Answers (1)

glemiere
glemiere

Reputation: 5024

Go to platforms/android and open build.gradle.

Then add multiDexEnabled true to defaultConfig.

It should look like this at the end :

defaultConfig {
    versionCode cdvVersionCode ?: new BigInteger("" + privateHelpers.extractIntFromManifest("versionCode"))
    applicationId privateHelpers.extractStringFromManifest("package")

    if (cdvMinSdkVersion != null) {
        minSdkVersion cdvMinSdkVersion
    }

    multiDexEnabled true
}

EDIT

You might have a different issue after this. I suggest you to clean your project by removing every platforms, the /platforms and /plugins folders, and then reinstall everything.

Upvotes: 1

Related Questions