" Error: Member not found: 'packageRoot' " in Flutter

AndroidIosFlutterDartFlutter Dependencies

Android Problem Overview


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?

Android Solutions


Solution 1 - Android

I faced the same issue. I fixed it.

flutter channel stable
flutter upgrade
flutter pub upgrade

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionghosh_joyView Question on Stackoverflow
Solution 1 - AndroidAgus AndikaView Answer on Stackoverflow