title: Getting error while adding shared_preferences to flutter app
body: <p>I created new flutter project along with androidx support and trying add shared_preferences 0.5.4+3. when i call get command. it is giving message like The plugin <code>shared_preferences</code> requires your app to be migrated to the Android embedding v2. Follow the steps on <a href="https://flutter.dev/go/android-project-migration" rel="nofollow noreferrer">https://flutter.dev/go/android-project-migration</a> and re-run this command. </p>
  
  <p>When i do the changes described in the above, app is not launching and giving error like below.</p>
  
  <pre><code>.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.4+3/android/src/main/java/io/flutter/plugins/sharedpreferences/SharedPreferencesPlugin.java:25: warning: [deprecation] getFlutterEngine() in FlutterPluginBinding has been deprecated
      setupChannel(binding.getFlutterEngine().getDartExecutor(), binding.getApplicationContext());
  </code></pre>