Skip to content Skip to sidebar Skip to footer

Java.exe Error While Building Project In Android Studio

After creating a new project when I try to run the app it shows build failed error. I searched for it on the internet, they say that it may be due to duplicate libraries of gradle

Solution 1:

Try to delete this line:

compilefileTree(dir: 'libs', include: ['*.jar'])

Or you could set multiDexEnabled true:

defaultConfig {        
    // Enabling multidex support.
    multiDexEnabled true
}

and try again. Hope it helps.

Post a Comment for "Java.exe Error While Building Project In Android Studio"