android-multidex

Adding Firestore and MultiDex Causes my Android App to Crash

一世执手 提交于 2021-02-08 10:44:22
问题 I have been trying to build a simple app with Android Studio which has a Firestore implementation. When I add the following line to my build.gradle file implementation 'com.google.firebase:firebase-firestore:21.3.0' the app does not even build and throws the following error: cannot fit request class in a single dex file I have looked this issue up and found this Stackoverflow page which reccomends adding MultiDex to app. This allows the app to build, but it crashes when I try to run it in the

Adding Firestore and MultiDex Causes my Android App to Crash

烂漫一生 提交于 2021-02-08 10:43:26
问题 I have been trying to build a simple app with Android Studio which has a Firestore implementation. When I add the following line to my build.gradle file implementation 'com.google.firebase:firebase-firestore:21.3.0' the app does not even build and throws the following error: cannot fit request class in a single dex file I have looked this issue up and found this Stackoverflow page which reccomends adding MultiDex to app. This allows the app to build, but it crashes when I try to run it in the