I've a build error with audioplayers package in flutter

51 Views Asked by At

I've installed the audioplayers package for my flutter app and when I try to build the app it gives me this build error `FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':audioplayers_android:extractDebugAnnotations'.

Could not resolve all files for configuration ':audioplayers_android:detachedConfiguration1'. Could not find intellij-core-30.3.0.jar (com.android.tools.external.com-intellij:intellij-core:30.3.0). Searched in the following locations: https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/intellij-core/30.3.0/intellij-core-30.3.0.jar

  • 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.

BUILD FAILED in 22s Exception: Gradle task assembleDebug failed with exit code 1`

and the application didn't start

I tried to delete the package and every thing went well I tried flutter clean then flutter build and the problem didn't solved. Help my plz :)

1

There are 1 best solutions below

3
amin jamali On

in android folder open build.gradle file and change the repositories with this :

repositories {
        google()
        jcenter()
    }