Ошибка Flutter path_provider - не удалось разрешить проект: path_provider_linux - PullRequest
1 голос
/ 19 июня 2020

Я реализовал различные методы, но ошибки появляются каждый раз, когда я запускаю android. Если удалить папку path_provier_macos, появится ошибка linux. В настоящее время вы используете path_provier: ^ 1.6.11. Уменьшение версии path_provier аналогично. Подскажите пожалуйста решение.

Launching lib/main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':path_provider:compileDebugAidl'.
> Could not resolve all task dependencies for configuration
':path_provider:debugCompileClasspath'.
   > Could not resolve project :path_provider_macos.
     Required by:
         project :path_provider
      > Unable to find a matching configuration of project :path_provider_macos:
          - None of the consumable configurations have attributes.
   > Could not resolve project :path_provider_linux.
     Required by:
         project :path_provider
      > Unable to find a matching configuration of project :path_provider_linux:
          - None of the consumable configurations have attributes.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to     
get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 12s
Finished with error: Gradle task assembleDebug failed with exit code 1

1 Ответ

0 голосов
/ 08 августа 2020
  • Go в папку SDK Flutter.
  • Go в [.pub-cache \ hosted \ pub.dartlang.org \ или .pub-cache \ hosted \ pub.flutter -io.cn \]
  • Удалить все папки path_provider.
  • Pub get
  • Запустить приложение.

Надеюсь, это решит вашу проблему !

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...