83

While trying to run any flutter project on Android Studio, I am getting this particular error :

[+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
[        ] [        ]                   ^^^^^^^^^^^

Looked on the net for quite a while but couldn't find any viable solution. Can anyone help with a fix?

ghosh_joy
  • 1,031
  • 1
  • 5
  • 10

1 Answers1

103

I faced the same issue. I fixed it.

flutter channel stable
flutter upgrade
flutter pub upgrade
Ali Azimoshan
  • 1,081
  • 11
  • 26
Agus Andika
  • 1,055
  • 1
  • 2
  • 2