Flutter новый проект Не удалось определить зависимости задачи ': app: compileDebugJavaWith Javac' - PullRequest
0 голосов
/ 23 апреля 2020

При запуске нового проекта флаттера на эмуляторе android с использованием android studio возникает следующая ошибка

Launching lib\main.dart on Android SDK built for x86 in debug mode... Running Gradle task 'assembleDebug'... [Fatal Error] x86_64_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom:2:10: Already seen doctype. [Fatal Error] x86_64_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom:2:10: Already seen doctype. [Fatal Error] x86_64_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom:2:10: Already seen doctype. [Fatal Error] flutter_embedding_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom:2:10: Already seen doctype. [Fatal Error] flutter_embedding_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom:2:10: Already seen doctype. [Fatal Error] flutter_embedding_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom:2:10: Already seen doctype. [Fatal Error] x86_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom:2:10: Already seen doctype. [Fatal Error] x86_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom:2:10: Already seen doctype. [Fatal Error] x86_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom:2:10: Already seen doctype. [Fatal Error] x86_64_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom:2:10: Already seen doctype. [Fatal Error] flutter_embedding_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom:2:10: Already seen doctype. [Fatal Error] x86_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom:2:10: Already seen doctype. [Fatal Error] x86_64_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom:2:10: Already seen doctype. [Fatal Error] flutter_embedding_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom:2:10: Already seen doctype. [Fatal Error] x86_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom:2:10: Already seen doctype. [Fatal Error] x86_64_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom:2:10: Already seen doctype. [Fatal Error] flutter_embedding_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom:2:10: Already seen doctype. [Fatal Error] x86_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom:2:10: Already seen doctype.

FAILURE: Build failed with an exception.

* What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
   > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.
     Required by:
         project :app
      > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.
         > Could not parse POM http://download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408/flutter_embedding_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom
            > Already seen doctype.
      > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.
         > Could not parse POM http://download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408/flutter_embedding_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom
            > Already seen doctype.
      > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.
         > Could not parse POM http://download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408/flutter_embedding_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom
            > Already seen doctype.
   > Could not resolve io.flutter:x86_debug:1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.
     Required by:
         project :app
      > Could not resolve io.flutter:x86_debug:1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.
         > Could not parse POM http://download.flutter.io/io/flutter/x86_debug/1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408/x86_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom
            > Already seen doctype.
      > Could not resolve io.flutter:x86_debug:1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.
         > Could not parse POM http://download.flutter.io/io/flutter/x86_debug/1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408/x86_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom
            > Already seen doctype.
      > Could not resolve io.flutter:x86_debug:1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.
         > Could not parse POM http://download.flutter.io/io/flutter/x86_debug/1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408/x86_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom
            > Already seen doctype.
   > Could not resolve io.flutter:x86_64_debug:1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.
     Required by:
         project :app
      > Could not resolve io.flutter:x86_64_debug:1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.
         > Could not parse POM http://download.flutter.io/io/flutter/x86_64_debug/1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408/x86_64_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom
            > Already seen doctype.
      > Could not resolve io.flutter:x86_64_debug:1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.
         > Could not parse POM http://download.flutter.io/io/flutter/x86_64_debug/1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408/x86_64_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom
            > Already seen doctype.
      > Could not resolve io.flutter:x86_64_debug:1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.
         > Could not parse POM http://download.flutter.io/io/flutter/x86_64_debug/1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408/x86_64_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.pom
            > Already seen doctype.

* 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 4s Finished with error: Gradle task assembleDebug failed with exit code 1

Я использую следующие версии плагинов для дротиков и флаттеров для Android Studio 3.6. 3

Дарт: 192.7761

Флаттер: 45.1.1

Флаттер доктор -v

[ √] Flutter (стабильный канал, v1.12.13 + hotfix.9, в Microsoft Windows [версия 10.0.18363.720], локаль en-US) • Flutter версия 1.12.13 + hotfix.9 в G: \ Programs \ Installed Programs \ flutter • Редакция фреймворка f139b11009 (3 недели go), 2020-03-30 13:57:30 -0700 • Редакция двигателя af51afceb8 • Версия Dart 2.7.2

[√] Android toolchain - разработка для Android устройств (Android SDK версии 29.0.2) • Android SDK в G: \ Programs \ Android \ SDK • Android Расположение NDK не настроено (необязательно; полезно для поддержки собственного профилирования) • Платформа android -29, инструменты сборки 29.0.2 • ANDROID_HOME = G: \ Programs \ Android \ SDK • Java двоичный файл по адресу: C: \ Program Fil es \ Android \ Android Studio \ jre \ bin \ java • Java версия OpenJDK Runtime Environment (сборка 1.8.0_212-release-1586-b04) • Все Android лицензии приняты.

[√ ] Android Studio (версия 3.6) • Android Studio в C: \ Program Files \ Android \ Android Studio • Плагин Flutter версии 45.1.1 • Плагин Dart версии 192.7761 • Java версия среды выполнения OpenJDK ( build 1.8.0_212-release-1586-b04)

[√] Подключенное устройство (1 доступно) • Android SDK для x86 • Эмулятор-5554 • android -x86 • Android 8.1. 0 (API 27) (эмулятор)

• Проблем не найдено!

пробовал flutter pub cache repair, но ничего не изменилось

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