flutterflutter-dependenciesdeprecated

The plugin `advance_pdf_viewer` uses a deprecated version of the Android embedding even latest version added pubsec


Important thing is i have upgraded flutter version in between and warning was shown up (until it was performing nicely)

This is warning message but for that I have performed fllowing things

  1. updated Manifest with

       android:name="flutterEmbedding"
       android:value="2" />
  1. Firstly flutter clean
  2. then flutter update
  3. Perform flutter pub cache repair
  4. Perform invalidate cache and restart android studio
  5. Perform deleted .gradle folder
  6. It was not correct but deleted GeneratedPluginRegistrant.java for rebuilding plugins file

Still warning persist all above steps was copied from stackoverflow and GitHub

Does it caused by copying plugin from git to my project root directory that may be not correct but i have performed that also.


Solution

  • I think 3rd command must be flutter upgrade rather than flutter update.

    I don't have enough points to comment, so added an answer.