-
Notifications
You must be signed in to change notification settings - Fork 83
Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create a platform view of unregistered type: flutter_zoom_plugin #39
Comments
I have the same problem for Android, I could not fixed it There is an example here on how to add the proguard.cfg You need to change the build.gradle file also not just adding the file into android/app. Android has default names for proguard and you have to set the name the new name of the file. For example Is the above correct? Even though the problem persists, Investigating the exception found this Flutter Issues Proguard Hope it helps |
@tetteu777 can you please provide a sample application that reproduces this error? I can then ave a look into it. |
Same issue here, using this example project. Tried to add proguard file but it gives the same error. |
Same error here: |
Hello guys I managed to make it work but on another project. As the exception says Trying to create a platform view of unregistered type: flutter_zoom_plugin The registering occurs at This is the code of the class at the example
The class is generated by Flutter so, there is no point fixing anything here. But I have another flutter project where the Generated class is
One of the things that is wierd is the The exact same meeting_screen.dart on the example and adding
on the other project works. |
I didn't understand how you solve it, since it is a generated file. I tried to change de code, but it got generated again. |
Solved it with a new flutter project, the GeneratedPluginRegistrant is different and the meeting_screen.dart works. I gotta say that the original problem was for Android, the iOS example always worked for me. |
What version of flutter are you using? I have this version: |
I have 1.17.2 (Stable for Windows) |
Can't get it to work :-( |
Any update on this? |
@Maadhav if you have a sample small application that can simulate the problem it would be good to post for us to test. |
I just downloaded the example and ran the program with my app key and secret. But when I join a meeting the error mentioned above just comes, and nothing appears. |
I have the same error: Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create a platform view of unregistered type: flutter_zoom_plugin |
@longvhv So to use this plugin u will have yo manually create a new project change the amdroid and ios files as told in the Reame. The same error occurred with me when trying to run the example app |
i am getting same error when i run example code... |
@Bharavi26 I have uploaded my example on my Github. |
Thank you so much @Maadhav sir, I will check that ..I am working on that error from last 2 days, |
I am not able to get it working, below are the steps I followed. https://github.com/Maadhav/zoom_flutter_example An Observatory debugger and profiler on iPhone 11 Pro is available at: http://127.0.0.1:53213/mN3qvL0silY=/ [VERBOSE-2:platform_view_layer.cc(37)] Trying to embed a platform view but the PaintContext does not support embedding |
@romeshn Didn't try with ios yet. Could u pls test if the same issue occurs in android? |
@Maadhav similar error in android. see below D/ (13506): HostConnection::get() New Host Connection established 0xe60b2100, tid 13520 |
Android is working fine for me but when it comes to iOS, I'm getting this error. |
Did you find any solutons? |
I cannot run example.
Added:
flutter_zoom_plugin:
git:
url: git://github.com/decodedhealth/flutter_zoom_plugin.git
ref: 0.0.7
to pubspec.yaml at example's folder
Added: proguard.cfg to android folder in example's folder
Launching lib/main.dart on Mi A3 in debug mode...
✓ Built build/app/outputs/apk/debug/app-debug.apk.
W/IInputConnectionWrapper(21329): getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper(21329): getSelectedText on inactive InputConnection
W/IInputConnectionWrapper(21329): getTextAfterCursor on inactive InputConnection
W/IInputConnectionWrapper(21329): beginBatchEdit on inactive InputConnection
W/IInputConnectionWrapper(21329): endBatchEdit on inactive InputConnection
E/flutter (21329): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create a platform view of unregistered type: flutter_zoom_plugin
E/flutter (21329): at io.flutter.plugin.platform.PlatformViewsController$1.createPlatformView(PlatformViewsController.java:97)
E/flutter (21329): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:95)
E/flutter (21329): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:59)
E/flutter (21329): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:226)
E/flutter (21329): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/flutter (21329): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:631)
E/flutter (21329): at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (21329): at android.os.MessageQueue.next(MessageQueue.java:336)
E/flutter (21329): at android.os.Looper.loop(Looper.java:174)
E/flutter (21329): at android.app.ActivityThread.main(ActivityThread.java:7397)
E/flutter (21329): at java.lang.reflect.Method.invoke(Native Method)
E/flutter (21329): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
E/flutter (21329): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
E/flutter (21329): , null)
�[38;5;244mE/flutter (21329): #0 StandardMethodCodec.decodeEnvelope�[39;49m
�[38;5;244mE/flutter (21329): #1 MethodChannel._invokeMethod�[39;49m
E/flutter (21329):
�[38;5;244mE/flutter (21329): #2 MethodChannel.invokeMethod�[39;49m
�[38;5;244mE/flutter (21329): #3 AndroidViewController._create�[39;49m
�[38;5;244mE/flutter (21329): #4 AndroidViewController.setSize�[39;49m
�[38;5;244mE/flutter (21329): #5 RenderAndroidView._sizePlatformView�[39;49m
�[38;5;244mE/flutter (21329): #6 RenderAndroidView.performResize�[39;49m
�[38;5;244mE/flutter (21329): #7 RenderObject.layout�[39;49m
�[38;5;244mE/flutter (21329): #8 RenderProxyBoxMixin.performLayout�[39;49m
�[38;5;244mE/flutter (21329): #9 RenderObject.layout�[39;49m
�[38;5;244mE/flutter (21329): #10 RenderPadding.performLayout�[39;49m
�[38;5;244mE/flutter (21329): #11 RenderObject.layout�[39;49m
�[38;5;244mE/flutter (21329): #12 MultiChildLayoutDelegate.layoutChild�[39;49m
�[38;5;244mE/flutter (21329): #13 _ScaffoldLayout.performLayout�[39;49m
�[38;5;244mE/flutter (21329): #14 MultiChildLayoutDelegate._callPerformLayout�[39;49m
�[38;5;244mE/flutter (21329): #15 RenderCustomMultiChildLayoutBox.performLayout�[39;49m
�[38;5;244mE/flutter (21329): #16 RenderObject.layout�[39;49m
�[38;5;244mE/flutter (21329): #17 RenderProxyBoxMixin.performLayout�[39;49m
�[38;5;244mE/flutter (21329): #18 RenderObject.layout�[39;49m
�[38;5;244mE/flutter (21329): #19 RenderProxyBoxMixin.performLayout�[39;49m
�[38;5;244mE/flutter (21329): #20 _RenderCustomClip.performLayout�[39;49m
�[38;5;244mE/flutter (21329): #21 RenderObject.layout�[39;49m
�[38;5;244mE/flutter (21329): #22 RenderProxyBoxMixin.performLayout�[39;49m
�[38;5;244mE/flutter (21329): #23 RenderObject.layout�[39;49m
�[38;5;244mE/flutter (21329): #24 RenderProxyBoxMixin.performLayout�[39;49m
�[38;5;244mE/flutter (21329): #25 RenderObject.layout�[39;49m
�[38;5;244mE/flutter (21329): #26 RenderProxyBoxMixin.performLayout�[39;49m
�[38;5;244mE/flutter (21329): #27 RenderObject.layout�[39;49m
�[38;5;244mE/flutter (21329): #28 RenderProxyBoxMixin.performLayout�[39;49m
�[38;5;244mE/flutter (21329): #29 RenderObject.layout�[39;49m
E/flutter (21329): #30 RenderProxyBoxMixin.performLayout (pa
Application finished.
Exited (sigterm)
The text was updated successfully, but these errors were encountered: