安装时,Android应用程序在安装时陷入飞溅,有时我们重新打开
我是新手扑打,并实施了一个Android Splash屏幕的小应用程序。当我在模拟器上运行它,并且物理设备连接到系统时,它运行正常。但是,当我释放一些用于测试的构建时,它会粘在安装上,并且有时安装正常工作,但是当我们一段时间后我们从后台重新打开了该应用程序时。
由于它在调试方面工作正常,因此我找不到原因。当我查看Firebase崩溃日志时,我的崩溃有下面的日志。可能是什么原因造成的?
io.flutter.embedding.engine.FlutterJNI.nativeSurfaceChanged (FlutterJNI.java)
io.flutter.embedding.engine.FlutterJNI.onSurfaceChanged (FlutterJNI.java)
io.flutter.embedding.engine.renderer.FlutterRenderer.surfaceChanged (FlutterRenderer.java)
io.flutter.embedding.android.FlutterSurfaceView.changeSurfaceSize (FlutterSurfaceView.java)
io.flutter.embedding.android.FlutterSurfaceView.access$300 (FlutterSurfaceView.java)
io.flutter.embedding.android.FlutterSurfaceView$1.surfaceChanged (FlutterSurfaceView.java)
android.view.SurfaceView.updateSurface (SurfaceView.java:1273)
android.view.SurfaceView.setFrame (SurfaceView.java:646)
android.view.View.layout (View.java:23477)
android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
android.widget.FrameLayout.onLayout (FrameLayout.java:270)
android.view.View.layout (View.java:23482)
android.view.ViewGroup.layout (ViewGroup.java:6575)
android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
android.widget.FrameLayout.onLayout (FrameLayout.java:270)
android.view.View.layout (View.java:23482)
android.view.ViewGroup.layout (ViewGroup.java:6575)
android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
android.widget.FrameLayout.onLayout (FrameLayout.java:270)
android.view.View.layout (View.java:23482)
android.view.ViewGroup.layout (ViewGroup.java:6575)
android.widget.LinearLayout.setChildFrame (LinearLayout.java:1841)
android.widget.LinearLayout.layoutVertical (LinearLayout.java:1673)
android.widget.LinearLayout.onLayout (LinearLayout.java:1582)
android.view.View.layout (View.java:23482)
android.view.ViewGroup.layout (ViewGroup.java:6575)
android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
android.widget.FrameLayout.onLayout (FrameLayout.java:270)
com.android.internal.policy.DecorView.onLayout (DecorView.java:873)
android.view.View.layout (View.java:23482)
android.view.ViewGroup.layout (ViewGroup.java:6575)
android.view.ViewRootImpl.performLayout (ViewRootImpl.java:4075)
android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:3470)
android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:2398)
android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:9407)
android.view.Choreographer$CallbackRecord.run (Choreographer.java:1214)
android.view.Choreographer.doCallbacks (Choreographer.java:968)
android.view.Choreographer.doFrame (Choreographer.java:868)
android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1199)
android.os.Handler.handleCallback (Handler.java:938)
android.os.Handler.dispatchMessage (Handler.java:99)
android.os.Looper.loopOnce (Looper.java:233)
android.os.Looper.loop (Looper.java:344)
android.app.ActivityThread.main (ActivityThread.java:8204)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:589)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1071)
I am new to Flutter and implemented one small application which Android splash screen. It is working fine when I ran it on emulator and physical device connect to system. But when I release a build for testing some times it is stuck on installing and some times installing working fine but when we reopen the app from background after some time.
Since it is working fine in debug, I am unable to find the reason. When I look at the Firebase crash log, I have a crash with below log. What might be causing this?
io.flutter.embedding.engine.FlutterJNI.nativeSurfaceChanged (FlutterJNI.java)
io.flutter.embedding.engine.FlutterJNI.onSurfaceChanged (FlutterJNI.java)
io.flutter.embedding.engine.renderer.FlutterRenderer.surfaceChanged (FlutterRenderer.java)
io.flutter.embedding.android.FlutterSurfaceView.changeSurfaceSize (FlutterSurfaceView.java)
io.flutter.embedding.android.FlutterSurfaceView.access$300 (FlutterSurfaceView.java)
io.flutter.embedding.android.FlutterSurfaceView$1.surfaceChanged (FlutterSurfaceView.java)
android.view.SurfaceView.updateSurface (SurfaceView.java:1273)
android.view.SurfaceView.setFrame (SurfaceView.java:646)
android.view.View.layout (View.java:23477)
android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
android.widget.FrameLayout.onLayout (FrameLayout.java:270)
android.view.View.layout (View.java:23482)
android.view.ViewGroup.layout (ViewGroup.java:6575)
android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
android.widget.FrameLayout.onLayout (FrameLayout.java:270)
android.view.View.layout (View.java:23482)
android.view.ViewGroup.layout (ViewGroup.java:6575)
android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
android.widget.FrameLayout.onLayout (FrameLayout.java:270)
android.view.View.layout (View.java:23482)
android.view.ViewGroup.layout (ViewGroup.java:6575)
android.widget.LinearLayout.setChildFrame (LinearLayout.java:1841)
android.widget.LinearLayout.layoutVertical (LinearLayout.java:1673)
android.widget.LinearLayout.onLayout (LinearLayout.java:1582)
android.view.View.layout (View.java:23482)
android.view.ViewGroup.layout (ViewGroup.java:6575)
android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
android.widget.FrameLayout.onLayout (FrameLayout.java:270)
com.android.internal.policy.DecorView.onLayout (DecorView.java:873)
android.view.View.layout (View.java:23482)
android.view.ViewGroup.layout (ViewGroup.java:6575)
android.view.ViewRootImpl.performLayout (ViewRootImpl.java:4075)
android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:3470)
android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:2398)
android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:9407)
android.view.Choreographer$CallbackRecord.run (Choreographer.java:1214)
android.view.Choreographer.doCallbacks (Choreographer.java:968)
android.view.Choreographer.doFrame (Choreographer.java:868)
android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1199)
android.os.Handler.handleCallback (Handler.java:938)
android.os.Handler.dispatchMessage (Handler.java:99)
android.os.Looper.loopOnce (Looper.java:233)
android.os.Looper.loop (Looper.java:344)
android.app.ActivityThread.main (ActivityThread.java:8204)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:589)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1071)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Github上有一个flutter回购记录的问题。您可以找到它在这里。
您应该升级您的Flutter版本为颤动2.10.3。正如同一线程所声称的2.10.3现在已经解决了此问题。
There was an issue logged with Flutter repo on Github. You can find it here.
You should upgrade you flutter version to Flutter 2.10.3. as it is claimed in same thread that the version 2.10.3 has resolved this issue now.