Closed dan-fein closed 4 years ago
For some reason this exists in the code:
import android.support.multidex.MultiDexApplication;
but needed to be replaced with:
import androidx.multidex.MultiDexApplication;
Not "for some reason", but because you've crossed the AndroidX boundary - a not-very-comfortable transition for the react-native ecosystem, c.f. https://github.com/mikehardy/jetifier
Not trying to fob you off on demo scripts or other things, but there is some real knowledge here that's worth ingesting. The react-native ecosystem is still dealing with this transition so you are likely to encounter it with other modules + dependencies as well.
For reference - you can see on this line in the PR upgrading the starter to RN60 that it has already been changed https://github.com/invertase/react-native-firebase-starter/pull/135/files#diff-dc46f9f5dfe204e394fb41395ccd03cfR251
Also, I know you hate seeing this link, but the RN60 version of the demo script similarly has the updated dependency https://github.com/mikehardy/rnfbdemo/blob/master/make-demo.sh#L127
Hi I've just recently used this starter code and despite all of the posts about this issue, none of the proposed solutions have worked for me. It seems Multidex was introduced to support legacy devices, but I'm using Pie with API 28 and it's causing issues.
Please do not refer me to demo scripts as those have not been helpful.
The main error I'm getting is:
build.gradle
app/build.gradle
mainApplication.java