-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PlatformException when run release build only #813
Comments
NOTE: This comment is auto-generated. Are you sure you have already searched for the same problem? Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem! If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue. In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding Following these steps can save you, me, and other people a lot of time, thanks! |
Ciao Lorenzo, |
This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue. |
Environment
Device information:
Tested with different physical devices.
Description
I have a PlatformException when run the app with --release mode. In debug or profile mode there are no problems.
Expected behavior:
Run as in debug and profile mode.
Current behavior:
Black screen with exception in console.
Steps to reproduce
Images
Stacktrace/Logcat
E/flutter (31616): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create a platform view of unregistered type: com.pichillilorenzo/flutter_inappwebview
E/flutter (31616): at io.flutter.plugin.platform.j$a.d(Unknown Source:229)
E/flutter (31616): at io.flutter.embedding.engine.i.j$a.b(Unknown Source:152)
E/flutter (31616): at io.flutter.embedding.engine.i.j$a.onMethodCall(Unknown Source:144)
E/flutter (31616): at f.a.d.a.j$a.a(Unknown Source:17)
E/flutter (31616): at io.flutter.embedding.engine.e.b.e(Unknown Source:57)
E/flutter (31616): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(Unknown Source:4)
E/flutter (31616): at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (31616): at android.os.MessageQueue.next(MessageQueue.java:335)
E/flutter (31616): at android.os.Looper.loop(Looper.java:206)
E/flutter (31616): at android.app.ActivityThread.main(ActivityThread.java:8506)
E/flutter (31616): at java.lang.reflect.Method.invoke(Native Method)
E/flutter (31616): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
E/flutter (31616): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1139)
E/flutter (31616): , null, null)
E/flutter (31616): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:581)
E/flutter (31616): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158)
E/flutter (31616):
E/flutter (31616): #2 TextureAndroidViewController._sendCreateMessage (package:flutter/src/services/platform_views.dart:1036)
E/flutter (31616):
E/flutter (31616): #3 AndroidViewController.create (package:flutter/src/services/platform_views.dart:742)
E/flutter (31616):
E/flutter (31616): #4 RenderAndroidView._sizePlatformView (package:flutter/src/rendering/platform_view.dart:195)
E/flutter (31616):
E/flutter (31616):
The text was updated successfully, but these errors were encountered: