Ich bin neu bei Flutter. Ich habe Probleme beim Ausführen des Flatterprojekts.

Problem:

Gilt nicht für die Konfiguration "main.dart", die in der Geräteauswahl angezeigt wird. Geben Sie die Bildbeschreibung ein hier

Nach dem Ausführen des unten gezeigten Projekts Ausnahme in der Konsole.

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-a67792536ca236a971d0efbcfd7af4efb8f6c119.
     Required by:
         project :app
      > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.
         > Could not get resource 'http://download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/flutter_embedding_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
            > Could not GET 'http://download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/flutter_embedding_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
               > Connect to download.flutter.io:80 [download.flutter.io/172.217.167.144] failed: Connection timed out: connect
      > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.
         > Could not get resource 'http://download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/flutter_embedding_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
            > Could not GET 'http://download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/flutter_embedding_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
               > Connect to download.flutter.io:80 [download.flutter.io/172.217.167.144] failed: Connection timed out: connect
      > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.
         > Could not get resource 'http://download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/flutter_embedding_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
            > Could not GET 'http://download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/flutter_embedding_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
               > Connect to download.flutter.io:80 [download.flutter.io/172.217.167.144] failed: Connection timed out: connect
   > Could not resolve io.flutter:armeabi_v7a_debug:1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.
     Required by:
         project :app
      > Could not resolve io.flutter:armeabi_v7a_debug:1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.
         > Could not get resource 'http://download.flutter.io/io/flutter/armeabi_v7a_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/armeabi_v7a_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
            > Could not GET 'http://download.flutter.io/io/flutter/armeabi_v7a_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/armeabi_v7a_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
               > Connect to download.flutter.io:80 [download.flutter.io/172.217.167.144] failed: Connection timed out: connect
      > Could not resolve io.flutter:armeabi_v7a_debug:1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.
         > Could not get resource 'http://download.flutter.io/io/flutter/armeabi_v7a_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/armeabi_v7a_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
            > Could not GET 'http://download.flutter.io/io/flutter/armeabi_v7a_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/armeabi_v7a_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
               > Connect to download.flutter.io:80 [download.flutter.io/172.217.167.144] failed: Connection timed out: connect
      > Could not resolve io.flutter:armeabi_v7a_debug:1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.
         > Could not get resource 'http://download.flutter.io/io/flutter/armeabi_v7a_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/armeabi_v7a_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
            > Could not GET 'http://download.flutter.io/io/flutter/armeabi_v7a_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/armeabi_v7a_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
               > Connect to download.flutter.io:80 [download.flutter.io/172.217.167.144] failed: Connection timed out: connect
   > Could not resolve io.flutter:x86_debug:1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.
     Required by:
         project :app
      > Could not resolve io.flutter:x86_debug:1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.
         > Could not get resource 'http://download.flutter.io/io/flutter/x86_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/x86_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
            > Could not GET 'http://download.flutter.io/io/flutter/x86_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/x86_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
               > Connect to download.flutter.io:80 [download.flutter.io/172.217.167.144] failed: Connection timed out: connect
      > Could not resolve io.flutter:x86_debug:1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.
         > Could not get resource 'http://download.flutter.io/io/flutter/x86_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/x86_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
            > Could not GET 'http://download.flutter.io/io/flutter/x86_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/x86_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
               > Connect to download.flutter.io:80 [download.flutter.io/172.217.167.144] failed: Connection timed out: connect
      > Could not resolve io.flutter:x86_debug:1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.
         > Could not get resource 'http://download.flutter.io/io/flutter/x86_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/x86_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
            > Could not GET 'http://download.flutter.io/io/flutter/x86_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/x86_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
               > Connect to download.flutter.io:80 [download.flutter.io/172.217.167.144] failed: Connection timed out: connect
   > Could not resolve io.flutter:x86_64_debug:1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.
     Required by:
         project :app
      > Could not resolve io.flutter:x86_64_debug:1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.
         > Could not get resource 'http://download.flutter.io/io/flutter/x86_64_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/x86_64_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
            > Could not GET 'http://download.flutter.io/io/flutter/x86_64_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/x86_64_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
               > Connect to download.flutter.io:80 [download.flutter.io/172.217.167.144] failed: Connection timed out: connect
      > Could not resolve io.flutter:x86_64_debug:1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.
         > Could not get resource 'http://download.flutter.io/io/flutter/x86_64_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/x86_64_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
            > Could not GET 'http://download.flutter.io/io/flutter/x86_64_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/x86_64_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
               > Connect to download.flutter.io:80 [download.flutter.io/172.217.167.144] failed: Connection timed out: connect
      > Could not resolve io.flutter:x86_64_debug:1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.
         > Could not get resource 'http://download.flutter.io/io/flutter/x86_64_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/x86_64_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
            > Could not GET 'http://download.flutter.io/io/flutter/x86_64_debug/1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119/x86_64_debug-1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.pom'.
               > Connect to download.flutter.io:80 [download.flutter.io/172.217.167.144] failed: Connection timed out: connect

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


Plugin für Flutter und Dart installiert neueste Version. Durch Ausführen des Flatterarztes in cmd wird alles in Ordnung angezeigt. hier ist es,

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.12.13+hotfix.7, on Microsoft Windows
    [Version 10.0.18362.592], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version
    29.0.1)
[√] Android Studio (version 3.5)
[√] Connected device (1 available)

Ich verstehe nicht, wo ich mich irre. Bitte helfen Sie mir, wenn Sie wissen.

Vielen Dank für Ihre Hilfe

1
Md Mahmudul Islam 7 Feb. 2020 im 17:21

3 Antworten

Beste Antwort

Versuchen Sie, das SDK von flutter erneut zu installieren. Ich habe das gleiche Problem auch konfrontiert. dann habe ich das flutter SDK neu installiert und alles lief perfekt.

1
MueEZ 7 Feb. 2020 im 14:44

Es kann sich um einen Kompilierungsfehler handeln. Deshalb sagt die Konsole mit Ausnahme einen Build-Fehler. Wenn Sie eine richtige Antwort benötigen, senden Sie den Code zusammen mit der Frage

0
MEZAN 7 Feb. 2020 im 15:24

Folge den Schritten:

  1. Gehen Sie zu PROJEKTSTRUKTUR> PROJEKT> NOSDK
  2. Ändern Sie NOSDK in die neueste ANDROID API PLATFORM
  3. DANN GEHE ZUM MODUL DAS GLEICHE
0
Asif A. Sohan 7 Feb. 2020 im 15:12