Flutter,Firebase和Provider:找不到providerinstaller的本地模块描述符类。
昨天升级所有Firebase插件后,我收到此错误/警告。我仍然可以运行我的应用程序。但是发生了不寻常的事情。
因此,通常在启动画面()之后,它将直接进入AppStarter()屏幕。
Splashscreen()
=> AppStarter()
但是在升级了我所有的firebase插件之后,两者之间发生了某种形式的屏幕中断。
Splashscreen()
=>停电=> AppStarter()
主文件
return FutureBuilder(
future: Firebase.initializeApp(),
builder: (context, snapshot) {
if (snapshot.hasError) {
print('>>> Error Initialization with Firebase');
return Container();
}
// Once complete, show your application
if (snapshot.connectionState == ConnectionState.done) {
return StreamProvider<SystemUser>.value(
// Our StreamProvider is listening to the user stream and wrapping the MaterialApp
// It means anythign inside MaterialApp Widget can accessed to the data provided the above stream
value: AuthService().user,
//
child: MaterialApp(
title: 'RecycleX',
theme: ThemeData(
fontFamily: 'NanumSquare',
//primarySwatch: Colors.blue,
//primarySwatch: primaryColor,
//accentColor: Colors.red[600],
primaryColor: primaryColor,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
debugShowCheckedModeBanner: false,
supportedLocales: [
Locale('en', 'US'),
Locale('ko', 'KR'),
],
localizationsDelegates: [
AppLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
localeResolutionCallback: (deviceLocale, supportedLocales) {
if (userLocale != null) {
print('User preferred language is ' +
userLocale.languageCode);
return userLocale;
} else {
for (var locale in supportedLocales) {
print(locale.languageCode + deviceLocale.languageCode);
if (locale.languageCode == deviceLocale.languageCode &&
locale.countryCode == deviceLocale.countryCode) {
print(deviceLocale.languageCode + ' is supported');
return deviceLocale;
}
}
print('>>>>> ' +
deviceLocale.languageCode +
' <<<<<< is not supported');
return supportedLocales.first;
}
},
//home: MyHomePage(title: 'Flutter Demo Home Page'),
initialRoute: '/',
routes: {
'/': (context) => AppStarter(),
'/wrapper': (context) => Wrapper(),
'/login': (context) => LoginScreen(),
'/signup': (context) => SignUp(),
'/home': (context) => HomeScreen(),
'/home_screen_wrapper': (context) => HomeScreenWrapper(),
'/camera_wrapper': (context) => CameraWrapper(),
'/image_evaluation': (context) => ImageEvaluation(),
'/upload_screen': (context) => UploadScreen(),
'/test_screen': (context) => TestScreen(),
'/profile': (context) => ProfileSetting()
}
//home: LoginScreen(),
),
);
}
//return Loading();
return MediaQuery(
data: new MediaQueryData.fromWindow(ui.window),
child: Directionality(
textDirection: TextDirection.ltr,
child: Loading(),
),
);
},
);
错误:
Restarted application in 1.277ms.
W/DynamiteModule( 965): Local module descriptor class for providerinstaller not found.
W/ConnectivityManager.CallbackHandler( 965): callback not found for CALLBACK_AVAILABLE message
I/DynamiteModule( 965): Considering local module providerinstaller:0 and remote module providerinstaller:0
W/ProviderInstaller( 965): Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
W/ConnectivityManager.CallbackHandler( 965): callback not found for CALLBACK_AVAILABLE message
W/DynamiteModule( 965): Local module descriptor class for providerinstaller not found.
I/DynamiteModule( 965): Considering local module providerinstaller:0 and remote module providerinstaller:0
W/ProviderInstaller( 965): Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
请给我一些解决方法的想法。我期待着大家的回音。我感谢各种评论。预先谢谢你。