Error after running fluttter run

I am getting this error after running flutter run

PS D:\Documents\LearnFlutter\awsome_app> flutter run
Using hardware rendering with device sdk gphone x86 arm. If you get graphics artifacts, consider enabling software rendering with
“–enable-software-rendering”.
Launching lib\main.dart on sdk gphone x86 arm in debug mode…
[Fatal Error] flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom:7:6: Element type “gr” must be followed by either attribute specifications, “>” or “/>”.
[Fatal Error] x86_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom:2:1: Content is not allowed in prolog.
[Fatal Error] x86_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom:2:1: Content is not allowed in prolog.
[Fatal Error] flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom:7:6: Element type “gr” must be followed by either attribute specifications, “>” or “/>”.
[Fatal Error] x86_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom:2:1: Content is not allowed in prolog.
[Fatal Error] flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom:7:6: Element type “gr” must be followed by either attribute specifications, “>” or “/>”.
[Fatal Error] flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom:7:6: Element type “gr” must be followed by either attribute specifications, “>” or “/>”.
[Fatal Error] x86_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom:2:1: Content is not allowed in prolog.
[Fatal Error] flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom:7:6: Element type “gr” must be followed by either attribute specifications, “>” or “/>”.
[Fatal Error] x86_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom:2:1: Content is not allowed in prolog.
[Fatal Error] flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom:7:6: Element type “gr” must be followed by either attribute specifications, “>” or “/>”.
[Fatal Error] x86_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom:2:1: Content is not allowed in prolog.

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-ee76268252c22f5c11e82a7b87423ca3982e51a7.
Required by:
project :app
Could not resolve io.flutter:flutter_embedding_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
Could not parse POM https://storage.googleapis.com/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom
Element type “gr” must be followed by either attribute specifications, “>” or “/>”.
Could not resolve io.flutter:flutter_embedding_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
Could not parse POM https://storage.googleapis.com/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom
Element type “gr” must be followed by either attribute specifications, “>” or “/>”.
Could not resolve io.flutter:flutter_embedding_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
Could not parse POM https://storage.googleapis.com/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom
Element type “gr” must be followed by either attribute specifications, “>” or “/>”.
Could not resolve io.flutter:x86_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
Required by:
project :app
Could not resolve io.flutter:x86_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
Could not parse POM https://storage.googleapis.com/download.flutter.io/io/flutter/x86_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom
Content is not allowed in prolog.
Could not resolve io.flutter:x86_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
Could not parse POM https://storage.googleapis.com/download.flutter.io/io/flutter/x86_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom
Content is not allowed in prolog.
Could not resolve io.flutter:x86_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
Could not parse POM https://storage.googleapis.com/download.flutter.io/io/flutter/x86_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom
Content is not allowed in prolog.

  • 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 13s
Running Gradle task ‘assembleDebug’…
Running Gradle task ‘assembleDebug’… Done 14.4s
Exception: Gradle task assembleDebug failed with exit code 1

Please help me

Hello,
i am stuck at the same problem . if you get any solution kindly tell me.

Finally i fixed it.
The problem is mostly due to android SDK or gradle built tool

There are different ways you can try to fix it.
way 1. check whether google drivers are installed . you can find them in sdk manager of the android studio

way 2. flutter doctor -v
flutter doctor --android-licenses (#this will check whether all the licenses of android are accepted)

way 3. flutter clean;flutter build apk
flutter run ( In the start it will take time for assembledeubg so kindly be patient for 7 to 10 mins)

way 4. If this also do not work
flutter clean
flutter run (be patient and finally after 5 to 10 min your flutter code will run on the emulator)

Hope these solutions work for you, If not reply me back.