After upgrading to React Native 0.57 i am facing an issue when genrating APK in react-native-router-flux.when executing the .\\gradlew assembleRelease i get below error :-<
[0.57] Ugly workaround
If you don't want to rollback the react-native version, you can just rollback the react.gradle to the last working version. That worked for me.
Copy the git code to node_modules/react-native/react.gradle
https://github.com/facebook/react-native/blob/2d9e2f30e17b8e79f2c44ef533ecdd550671304c/react.gradle
If the problem persists, try to remove the if (isAndroidLibrary)
on doLast
.