title: " Error: Member not found: 'packageRoot' " in Flutter
body: <p>While trying to run any flutter project on Android Studio, I am getting this particular error :</p>
  <pre><code>[+11147 ms] [+13655 ms] ../../flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.2/lib/src/interface/local_platform.dart:46:19: Error: Member not found: 'packageRoot'.
  [        ] [   +1 ms]       io.Platform.packageRoot; // ignore: deprecated_member_use
  [        ] [        ]                   ^^^^^^^^^^^
  </code></pre>
  <p>Looked on the net for quite a while but couldn't find any viable solution. Can anyone help with a fix?</p>