flutter v1.12.13+hotfix.5 华为畅想9闪退

新手上路,请多包涵

跪求解决方案!!!
机型:华为畅想9
操作系统:安卓8.2.0
flutter_sdk :v1.12.13+hotfix.5
webview_flutter: ^0.3.18+1

场景:启动闪退
错误代码:

E/flutter (17642): [ERROR:flutter/shell/gpu/gpu_surface_gl.cc(70)] Failed to setup Skia Gr context.
Error connecting to the service protocol: failed to connect to http://127.0.0.1:55401/KPoJi4ijsMg=/

尝试方案:
在MainActivity中增加getIntent().putExtra("enable-software-rendering", true);
这样确实可以启动了

新的问题:
修改后打开webview闪退
错误代码:

E/flutter (19801): [ERROR:flutter/shell/platform/android/platform_view_android_jni.cc(39)] java.lang.RuntimeException: Error during attachToGLContext (see logcat for details)
E/flutter (19801): at android.graphics.SurfaceTexture.attachToGLContext(SurfaceTexture.java:300)
E/flutter (19801):
F/flutter (19801): [FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(123)] Check failed: CheckException(env).
Lost connection to device.

各位大佬,走到这里,小弟真的不知道该如何解决了,没学过android和ios原生,走到这里全靠各种百度的flutter内容

阅读 2.3k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题