Android Studio: Error:Execution failed for task ‘:app:dexDebug’

compile ''
compile files('libs/google-play-services.jar')

I think you should remove 1 of those lines.

cd android/ && ./gradlew clean && cd .. && react-native run-android

I had the Android Studio Error:Execution failed for task ‘:app:dexDebug’ that i solve it by setting multiDexEnabled to true

defaultConfig {        
    // Enabling multidex support.
    multiDexEnabled true

Too many library were used in my project so i exceed the 65K methods dex limit imposed by Android for more information see :

Leave a Comment