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:
publicclassAppextendsMultiDexApplication {
...
}
or like this:
publicclassAppextendsApplication {
@OverridepublicvoidonCreate() {
super.onCreate();
MultiDex.install(this);
}
}
Hope it helps.
Post a Comment for "React-native (android) - Execution Failed For Task ':app:transformclasseswithmultidexlistforrelease'"