android - 使用 Flutter 的 Firebase
问题描述
在尝试将我的颤振应用程序与 firebase 连接时,应用程序崩溃(目标设备为 android 版本4.4.2
)。
错误信息:
E/AndroidRuntime(28035): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList[[zip file "/data/app/com.omarhaassaan.chat_app-3.apk"],nativeLibraryDirectories=[/data/app-lib/com.omarhaassaan.chat_app-3, /vendor/lib, /system/lib, /lib]]
是什么导致了这个错误?
我能想到的可能解决方案:
- 启用 MultiDex
- 缩小真实