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

[native_pdf_view] Missing Plugin Exception - io.scer.pdf.renderer #104

Closed
atnegrete opened this issue Aug 5, 2020 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@atnegrete
Copy link

Describe the bug
Exception is being thrown when calling PdfDocument.openAsset

To Reproduce
Steps to reproduce the behavior:

  1. PDFDocument.openAsset('assets/pdf.pdf');

Smartphone (please complete the following information):

  • Android Emulator Nexus_10_API_28

Additional context
E/flutter ( 4346): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method open.document.asset on channel io.scer.pdf.renderer)
E/flutter ( 4346): #0 MethodChannel._invokeMethod
E/flutter ( 4346):
E/flutter ( 4346): #1 MethodChannel.invokeMethod
E/flutter ( 4346): #2 PDFDocument.openAsset
E/flutter ( 4346): #3 _UserFormPdfPageState.initState.
E/flutter ( 4346): #4 new Future.microtask. (dart:async/future.dart:202:37)
E/flutter ( 4346): #5 _rootRun (dart:async/zone.dart:1180:38)
E/flutter ( 4346): #6 _CustomZone.run (dart:async/zone.dart:1077:19)
E/flutter ( 4346): #7 _CustomZone.runGuarded (dart:async/zone.dart:979:7)
E/flutter ( 4346): #8 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1019:23)
E/flutter ( 4346): #9 _rootRun (dart:async/zone.dart:1184:13)
E/flutter ( 4346): #10 _CustomZone.run (dart:async/zone.dart:1077:19)
E/flutter ( 4346): #11 _CustomZone.runGuarded (dart:async/zone.dart:979:7)
E/flutter ( 4346): #12 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1019:23)
E/flutter ( 4346): #13 _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
E/flutter ( 4346): #14 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)

@atnegrete atnegrete added the bug Something isn't working label Aug 5, 2020
@SergeShkurko SergeShkurko changed the title Missing Plugin Exception - io.scer.pdf.renderer [native_pdf_view] Missing Plugin Exception - io.scer.pdf.renderer Aug 9, 2020
@SergeShkurko
Copy link
Member

  1. Stop build
  2. Run flutter clean
  3. Run flutter pub get
  4. Run project again

About Missing Plugin Exception - io.scer.pdf.renderer - you installed the package while the application was running. Plugins with native code require a full stop and restart to register the native code with a framework

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants