我刚刚使用 firebase 安装了 flutter,但是在添加到数据库时出现以下错误
\n未找到 com.google.android.gms.providerinstaller.dynamite 的本地模块描述符类。\nI/DynamiteModule(10303):考虑本地模块 com.google.android.gms.providerinstaller.dynamite:0 和远程模块 com.google。 android.gms.providerinstaller.dynamite:0\nW/ProviderInstaller(10303):无法加载providerinstaller模块:找不到可接受的模块com.google.android.gms.providerinstaller.dynamite。本地版本为0,远程版本为0。
\n主程序.dart
\nimport 'package:cloud_firestore/cloud_firestore.dart';\nimport 'package:firebase_core/firebase_core.dart';\nimport 'package:flutter/material.dart';\nimport 'firebase_options.dart';\n\n\nFuture<void>main()async{\n WidgetsFlutterBinding.ensureInitialized();\n await Firebase.initializeApp(\n options: DefaultFirebaseOptions.android,\n );\n runApp(MyApp());\n}\n\nclass MyApp extends StatelessWidget {\n const MyApp({Key? key}) : super(key: key);\n\n @override\n Widget build(BuildContext context) {\n return MaterialApp(\n home: Iskele(),\n );\n }\n}\nclass Iskele extends StatefulWidget {\n const Iskele({Key? key}) : super(key: key);\n\n @override\n State<Iskele> createState() => _IskeleState();\n}\n\nclass _IskeleState extends State<Iskele> {\n TextEditingController t1 = TextEditingController();\n …Run Code Online (Sandbox Code Playgroud)