You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have used the package running the pubspec.yaml in browser with no problems, but if I tried to run the same code in an android device i get the following error. I have seen this issue has been solved, but when I tried to apply those solutions, I got the same error:
Running Gradle task 'assembleDebug'...
[Fatal Error] gradle-3.4.2.pom:2:1: Content is not allowed in prolog.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':url_launcher'.
> Could not resolve all artifacts for configuration ':url_launcher:classpath'.
> Could not resolve com.android.tools.build:gradle:3.4.2.
Required by:
project :url_launcher
> Could not resolve com.android.tools.build:gradle:3.4.2.
> Could not parse POM https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.4.2/gradle-3.4.2.pom
> Content is not allowed in prolog.
> Could not get unknown property 'android' for project ':url_launcher' of type org.gradle.api.Project.
* 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 5s
Exception: Gradle task assembleDebug failed with exit code 1
I am not sure if there is an error in my setup, but I am asking for help here beacause this only happends with this package, so if someone has solutions I am happy to hear them.
This discussion was converted from issue #333 on August 12, 2021 04:54.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My issue is about [Mobile]
Hi, I have used the package running the pubspec.yaml in browser with no problems, but if I tried to run the same code in an android device i get the following error. I have seen this issue has been solved, but when I tried to apply those solutions, I got the same error:
I am not sure if there is an error in my setup, but I am asking for help here beacause this only happends with this package, so if someone has solutions I am happy to hear them.
Beta Was this translation helpful? Give feedback.
All reactions