justYuMu
justYuMu
在flutter sdk里的模板生成文件修改一下就可以了, 模板文件路径: flutter_sdk路径/packages/flutter_tools/templates/module/android/host_app_common/app.tmpl/build.gradle.tmpl 不同sdk的路径可能有区别 在../templates 文件下,可以试试看是那个
混合开发在flutter中打开webview,返回到原生页面,再次进入flutter页面后,第二次打开webview会崩溃。 ``` E/flutter: [ERROR:flutter/fml/platform/android/jni_util.cc(182)] java.lang.IllegalStateException: The overlay surface (id:0) doesn't exist at io.flutter.plugin.platform.PlatformViewsController.onDisplayOverlaySurface(PlatformViewsController.java:821) at io.flutter.embedding.engine.FlutterJNI.onDisplayOverlaySurface(FlutterJNI.java:1010) at android.os.MessageQueue.nativePollOnce(Native Method) at android.os.MessageQueue.next(MessageQueue.java:335) at android.os.Looper.loop(Looper.java:183) at android.app.ActivityThread.main(ActivityThread.java:8010) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631) at...
i have same problem
> @ali-taha-albaap hi would you let me know if you fix it?
> i have same problem @nguyenthanhphap1413 hello, would you let me know if you fix it? thx.
@Geeph 找到原因了吗,我同样的host在原生是可以了,用dio在flutter请求报错 SocketException: Connection reset by peer, errno 104