lubritto / pdf_viewer_plugin

A Flutter plugin for IOS and Android providing a simple way to display PDFs.
MIT License
57 stars 62 forks source link

cannot find symbol pt.tribeiro.flutter_plugin_pdf_viewer.FlutterPluginPdfViewerPlugin.registerWith(shimPluginRegistry.registrarFor("pt.tribeiro.flutter_plugin_pdf_viewer.FlutterPluginPdfViewerPlugin")); #48

Open bipindubey-technoark opened 3 years ago

bipindubey-technoark commented 3 years ago

I am getting following error when i am running my flutter app

Note: C:\src\flutter\.pub-cache\hosted\pub.flutter-io.cn\advance_pdf_viewer-1.2.1+2\android\src\main\java\pt\tribeiro\flutter_plugin_pdf_viewer\FlutterPluginPdfViewerPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\src\flutter\.pub-cache\hosted\pub.flutter-io.cn\google_maps_flutter-1.1.1\android\src\main\java\io\flutter\plugins\googlemaps\Convert.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
E:\linkinvestor-flutterapp-v2\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:18: error: cannot find symbol
      pt.tribeiro.flutter_plugin_pdf_viewer.FlutterPluginPdfViewerPlugin.registerWith(shimPluginRegistry.registrarFor("pt.tribeiro.flutter_plugin_pdf_viewer.FlutterPluginPdfViewerPlugin"));
                                           ^
  symbol:   class FlutterPluginPdfViewerPlugin
  location: package pt.tribeiro.flutter_plugin_pdf_viewer
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 42s
Exception: Gradle task assembleDebug failed with exit code 1

I have tried flutter clean and flutter pub repair but nothing worked.

lubritto commented 3 years ago

Can you try using the latest version?

myselfuser1 commented 1 year ago

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