Look at this here https://github.com/flutter/flutter/issues/39814#issuecomment-528775495. It says you should:
./gradlew dependencies in project's android directory which downloaded missing path_provider dependencies.flutter clean then flutter run.