Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I got an error when i'm trying to run... :( 12 times i uninstalled and install app. But same issues. Got same issue in Android studio and Visual code studio. #59152

Closed
mpro9x opened this issue Jun 10, 2020 · 16 comments
Labels
in triage Presently being triaged by the triage team

Comments

@mpro9x
Copy link

mpro9x commented Jun 10, 2020

Launching lib\main.dart on AOSP on IA Emulator in debug mode...
Running Gradle task 'assembleDebug'...

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 get resource 'https://storage.googleapis.com/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
            > Could not GET 'https://storage.googleapis.com/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
               > storage.googleapis.com
      > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
         > Could not get resource 'https://storage.googleapis.com/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
            > Could not GET 'https://storage.googleapis.com/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
               > storage.googleapis.com
      > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
         > Could not get resource 'https://storage.googleapis.com/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
            > Could not GET 'https://storage.googleapis.com/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
               > storage.googleapis.com
      > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/io/flutter/flutter_embedding_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
            > Could not GET 'https://dl.google.com/dl/android/maven2/io/flutter/flutter_embedding_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
               > dl.google.com
      > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
         > Could not get resource 'https://jcenter.bintray.com/io/flutter/flutter_embedding_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
            > Could not GET 'https://jcenter.bintray.com/io/flutter/flutter_embedding_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
               > jcenter.bintray.com
   > 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 get resource 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
            > Could not GET 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
               > storage.googleapis.com
      > Could not resolve io.flutter:x86_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
         > Could not get resource 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
            > Could not GET 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
               > storage.googleapis.com
      > Could not resolve io.flutter:x86_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
         > Could not get resource 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
            > Could not GET 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
               > storage.googleapis.com
      > Could not resolve io.flutter:x86_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/io/flutter/x86_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
            > Could not GET 'https://dl.google.com/dl/android/maven2/io/flutter/x86_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
               > dl.google.com
      > Could not resolve io.flutter:x86_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
         > Could not get resource 'https://jcenter.bintray.com/io/flutter/x86_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
            > Could not GET 'https://jcenter.bintray.com/io/flutter/x86_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
               > jcenter.bintray.com
   > Could not resolve io.flutter:x86_64_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
     Required by:
         project :app
      > Could not resolve io.flutter:x86_64_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
         > Could not get resource 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_64_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_64_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
            > Could not GET 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_64_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_64_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
               > storage.googleapis.com
      > Could not resolve io.flutter:x86_64_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
         > Could not get resource 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_64_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_64_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
            > Could not GET 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_64_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_64_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
               > storage.googleapis.com
      > Could not resolve io.flutter:x86_64_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
         > Could not get resource 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_64_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_64_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
            > Could not GET 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_64_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_64_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
               > storage.googleapis.com
      > Could not resolve io.flutter:x86_64_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/io/flutter/x86_64_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_64_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
            > Could not GET 'https://dl.google.com/dl/android/maven2/io/flutter/x86_64_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_64_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
               > dl.google.com
      > Could not resolve io.flutter:x86_64_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.
         > Could not get resource 'https://jcenter.bintray.com/io/flutter/x86_64_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_64_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
            > Could not GET 'https://jcenter.bintray.com/io/flutter/x86_64_debug/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/x86_64_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom'.
               > jcenter.bintray.com

* 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 9s
Exception: Gradle task assembleDebug failed with exit code 1
@VladyslavBondarenko
Copy link

Hi @mdmahinurkhan
it may be the case of using flutter behind a country firewall, does using https://flutter.dev/community/china help?

@VladyslavBondarenko VladyslavBondarenko added in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Jun 10, 2020
@mpro9x
Copy link
Author

mpro9x commented Jun 10, 2020

Hi @mdmahinurkhan
it may be the case of using flutter behind a country firewall, does using https://flutter.dev/community/china help?

Hi @VladyslavBondarenko Thanks for your reply.

I'm from Bangladesh, So china community will help? Maybe not. However when i was trying to run, then opened a window to allow access of firewall, i allowed. So now will i try by using a VPN or will i try by turning off my internet in pc? Please let me know your suggestion.

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jun 10, 2020
@VladyslavBondarenko
Copy link

@mdmahinurkhan
by this link I meant to try with using mirror sites https://flutter.dev/community/china#configuring-flutter-to-use-a-mirror-site, or try with using VPN

@VladyslavBondarenko VladyslavBondarenko added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jun 10, 2020
@MD-ARMAN-Shanto
Copy link

MD-ARMAN-Shanto commented Jun 12, 2020

using vpn but facing the same issue.

@mpro9x
Copy link
Author

mpro9x commented Jun 13, 2020

using vpn but facing the same issue.

Did you get a solution? I tried VPN also, but not working :( Let me know if you get solution in either way

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jun 13, 2020
@mpro9x
Copy link
Author

mpro9x commented Jun 14, 2020

Hey, I got solutions by downloading 28 versions of sdk and android phone. API version 28 and Android pie.

@mpro9x mpro9x closed this as completed Jun 14, 2020
@Himanshunitrr
Copy link

I have the same issue and its been 2 days. Please help me

@mpro9x
Copy link
Author

mpro9x commented Jun 20, 2020

Sure, you'll select 28 API mobile virtual emulator and SDK. and SDK tool 28.0.3 and remove all update SDK versions, like 30 API levels.

@Himanshunitrr
Copy link

I did all this but still getting this error

@Himanshunitrr
Copy link

The error log is like

PS D:\Documents\LearnFlutter\awsome_app> flutter run
Using hardware rendering with device AOSP on IA Emulator. If you get graphics artifacts, consider enabling software rendering with
"--enable-software-rendering".
Launching lib\main.dart on AOSP on IA Emulator 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] 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] 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] 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.
[Fatal Error] flutter_embedding_debug-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.pom:7:6: Element type "gr" must be followed by either attribute specifications, ">" or "/>".

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 8s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 9.4s
Exception: Gradle task assembleDebug failed with exit code 1

@Himanshunitrr
Copy link

Please help me !! I dont want to waste my third day too

@mpro9x
Copy link
Author

mpro9x commented Jun 20, 2020

Can you reinstall by following my step, i hope it'll work for you!

@Himanshunitrr
Copy link

Problem solved. Deleted gradle cache and ran flutter precache

@mpro9x
Copy link
Author

mpro9x commented Jun 21, 2020

Ahh great! Now enjoy!!

@droplet-js
Copy link

droplet-js commented Jun 28, 2020

Here is my solution(refer to #56685)

android/build_compat.gradle

String storageUrl = 'https://storage.flutter-io.cn' //System.getenv('FLUTTER_STORAGE_BASE_URL') ?: "https://storage.googleapis.com"

project.subprojects { p ->
    p.repositories {
        maven {
            url "$storageUrl/download.flutter.io"
        }
    }
}

android/build.gradle

apply from: 'build_compat.gradle'

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
in triage Presently being triaged by the triage team
Projects
None yet
Development

No branches or pull requests

5 participants