Skip to content Skip to sidebar Skip to footer

React-Native (Android) - Execution Failed For Task ':app:transformClassesWithMultidexlistForRelease'

After updating the library react-native-fcm to version 16 (which now supports Android 8), I have the following error: Execution failed for task ':app:transformClassesWithMultidexli

Solution 1:

I believe that adding multiDexEnabled = true is just not enough. Try to add this line to your app/build.gradle file:

implementation 'com.android.support:multidex:1.0.3'

Also your Application class (if you have one) should be kinda like this:

public class App extends MultiDexApplication {
    ...
}

or like this:

public class App extends Application {

    @Override
        public void onCreate() {
            super.onCreate();
            MultiDex.install(this);
    }
}

Hope it helps.


Post a Comment for "React-Native (Android) - Execution Failed For Task ':app:transformClassesWithMultidexlistForRelease'"