question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Can't build app with versions above 6.1.2 (excluding 6.1.2)

See original GitHub issue

Flutter Sound Version :

Full, version 6.3.0+4 (happens on any version after 6.1.2)

  • Result of the command “flutter pub deps | grep flutter_sound”
|-- flutter_sound 6.3.0+4
|   |-- flutter_sound_platform_interface 6.3.0+4

Severity

  • Cannot build my App

Platforms you faced the error

  • Android Emulator and Android device

Logs

(This is very important. Most of the time we cannot do anything if we do not have information on your bug)

Launching lib\main.dart on Android SDK built for x86 in debug mode...
lib\main.dart:1
[Fatal Error] ucrop-2.2.6.pom:3:3: The markup in the document preceding the root element must be well-formed.

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 com.google.android.gms:play-services-location:16.+.
     Required by:
         project :app > project :location
      > Failed to list versions for com.google.android.gms:play-services-location.
         > Unable to load Maven meta-data from https://bintray.com/larpoux/CanardouxMaven/com/google/android/gms/play-services-location/maven-metadata.xml.
            > org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 3; The markup in the document preceding the root element must be well-formed.

* 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 24s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

Describe the bug

After upgrading several packages I was getting this error where my app couldn’t even build.

I recognised @Larpoux username in the link in the log so I tried building without flutter_sound and it worked, I then tried with older versions of the package until it worked.

The newest version of flutter_sound that would still let my app build was version 6.1.2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19

github_iconTop GitHub Comments

1reaction
Larpouxcommented, Oct 28, 2020

Dommage. Je vais reflechir un peu plus a ton probleme, cher cousin americain.

0reactions
MarceloEssercommented, Aug 29, 2022

Hi! I was with this same issue, I dind’t find any solution but I fixed just adding a multi dex support on my app.gradle:

android {
    ...
    
    defaultConfig {
      ...
    
      multiDexEnabled true
    }
    
 } 

I think this is just a workaround but it works for me ^^

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] Can't build app with versions above 6.1.2 ... - GitHub
It seems that you have something bad in your build.gradle file. probably around com.google.android.gms:play-services-location. You can try a.
Read more >
How to fix Xcode 6.1 error while building IPA - Stack Overflow
I wish I knew why it works, but here's a fix that worked for me: Found the fix ! Click on your project...
Read more >
App crashes at startup when using Admob.
I created an empty project, built it and it worked. Then I added the Google plugin and without initializing the SDK the app...
Read more >
Invalid Pre-Release Train. The tra… | Apple Developer Forums
We received the following errors when we tried to upload the new build. "Invalid Pre-Release Train. The train version '3.0' is closed for...
Read more >
Troubleshoot known issues with Android Emulator
This page lists known issues, workarounds, and troubleshooting tips for the Android Emulator. If you encounter an issue not listed here or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found