当我在MotoG8 Turbo上调试应用程序时。我的应用程序使用最近登录的凭据自动登录。它给出了正常登录不会出现的错误。最后提到错误。即使我第一次启动它时也使用最后一个凭据登录。 它在LoginPage()上运行登录功能,该功能在登录按钮按下时触发。但它会自动运行。
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
final Themes _theme = new Themes();
@override
Widget build(BuildContext context) {
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
return MaterialApp(
builder: (context, child) {
return ScrollConfiguration(
behavior: MyBehavior(),
child: child,
);
},
home: handlemainscreen(),
theme: _theme.currentTheme,
debugShowCheckedModeBanner: false,
);
}
}
Widget handlemainscreen() {
return StreamBuilder(
stream: FirebaseAuth.instance.onAuthStateChanged,
builder: (BuildContext context, snapshot) {
Constants.allocateSize(size: MediaQuery.of(context).size);
if (snapshot.connectionState == ConnectionState.waiting) {
return Scaffold(body: Center(child: CircularProgressIndicator()));
}
if (snapshot.hasData) {
return HomePage(snapshot.data);
} else {
return LoginPage();
}
},
);
}
出现的错误
W/DynamiteModule(23516): Local module descriptor class for providerinstaller not found.
I/DynamiteModule(23516): Considering local module providerinstaller:0 and remote module providerinstaller:0
W/ProviderInstaller(23516): Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
I/xample.monktre(23516): The ClassLoaderContext is a special shared library.
W/xample.monktre(23516): Accessing hidden field Ljava/nio/Buffer;->address:J (light greylist, reflection)
I/xample.monktre(23516): The ClassLoaderContext is a special shared library.
I/xample.monktre(23516): The ClassLoaderContext is a special shared library.
V/NativeCrypto(23516): Registering com/google/android/gms/org/conscrypt/NativeCrypto's 286 native methods...
W/xample.monktre(23516): Accessing hidden method Ljava/security/spec/ECParameterSpec;->getCurveName()Ljava/lang/String; (light greylist, reflection)
D/NetworkSecurityConfig(23516): No Network Security Config specified, using platform default
I/ProviderInstaller(23516): Installed default security provider GmsCore_OpenSSL
W/xample.monktre(23516): Accessing hidden field Ljava/net/Socket;->impl:Ljava/net/SocketImpl; (light greylist, reflection)
W/xample.monktre(23516): Accessing hidden method Ldalvik/system/CloseGuard;->get()Ldalvik/system/CloseGuard; (light greylist, linking)
W/xample.monktre(23516): Accessing hidden method Ldalvik/system/CloseGuard;->open(Ljava/lang/String;)V (light greylist, linking)
W/xample.monktre(23516): Accessing hidden field Ljava/io/FileDescriptor;->descriptor:I (light greylist, JNI)
W/xample.monktre(23516): Accessing hidden method Ljava/security/spec/ECParameterSpec;->setCurveName(Ljava/lang/String;)V (light greylist, reflection)
W/xample.monktre(23516): Accessing hidden method Ldalvik/system/BlockGuard;->getThreadPolicy()Ldalvik/system/BlockGuard$Policy; (light greylist, linking)
W/xample.monktre(23516): Accessing hidden method Ldalvik/system/BlockGuard$Policy;->onNetwork()V (light greylist, linking)