Skip to content
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

Unable to view PDF #178

Open
NiroopNife opened this issue Mar 15, 2022 · 3 comments
Open

Unable to view PDF #178

NiroopNife opened this issue Mar 15, 2022 · 3 comments

Comments

@NiroopNife
Copy link

NiroopNife commented Mar 15, 2022

I was creating a PDF file with the help of the PDF dependency & creating a file. Passed that file to the PDFView but getting an error stating as

E/flutter ( 7509): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create a platform view of unregistered type: plugins.endigo.io/pdfview
E/flutter ( 7509): 	at io.flutter.plugin.platform.PlatformViewsController$1.createVirtualDisplayForPlatformView(PlatformViewsController.java:197)
E/flutter ( 7509): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:107)
E/flutter ( 7509): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:59)
E/flutter ( 7509): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
E/flutter ( 7509): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:178)
E/flutter ( 7509): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$handleMessageFromDart$0$DartMessenger(DartMessenger.java:206)
E/flutter ( 7509): 	at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$6ZD1MYkhaLxyPjtoFDxe45u43DI.run(Unknown Source:12)
E/flutter ( 7509): 	at android.os.Handler.handleCallback(Handler.java:938)
E/flutter ( 7509): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/flutter ( 7509): 	at android.os.Looper.loop(Looper.java:246)
E/flutter ( 7509): 	at android.app.ActivityThread.main(ActivityThread.java:8633)
E/flutter ( 7509): 	at java.lang.reflect.Method.invoke(Native Method)
E/flutter ( 7509): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
E/flutter ( 7509): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
E/flutter ( 7509): , null, null)
E/flutter ( 7509): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)
E/flutter ( 7509): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:167:18)
E/flutter ( 7509): <asynchronous suspension>
E/flutter ( 7509): #2      TextureAndroidViewController._sendCreateMessage (package:flutter/src/services/platform_views.dart:1061:18)
E/flutter ( 7509): <asynchronous suspension>
E/flutter ( 7509): #3      AndroidViewController.create (package:flutter/src/services/platform_views.dart:771:5)
E/flutter ( 7509): <asynchronous suspension>
E/flutter ( 7509): #4      RenderAndroidView._sizePlatformView (package:flutter/src/rendering/platform_view.dart:191:7)
E/flutter ( 7509): <asynchronous suspension>
E/flutter ( 7509): 
@ahmadzt
Copy link

ahmadzt commented Aug 16, 2022

Same issue here

@ly2146
Copy link

ly2146 commented Sep 6, 2022

same to you

@myselfuser1
Copy link

This will help https://www.youtube.com/watch?v=gAUVz0U7eyA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants