获取`Failed to transform exoplayer-hls-2.17.1.aar`错误,在安装audio_waveforms包后。

huangapple go评论84阅读模式
英文:

getting `Failed to transform exoplayer-hls-2.17.1.aar` error after install audio_waveforms package

问题

我在我的Flutter应用中添加了audio_waveforms包,但无法构建或运行项目。它显示以下错误。

我的系统信息:
Linux Ubuntu:22.04.3
flutter:3.10.6
Dart:3.0.6

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task 'audio_waveforms_fix:generateDebugRFile'.
> Could not resolve all files for configuration 'audio_waveforms_fix:debugCompileClasspath'.
   > Failed to transform exoplayer-hls-2.17.1.aar (com.google.android.exoplayer:exoplayer-hls:2.17.1) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-api}.
      > Could not find exoplayer-hls-2.17.1.aar (com.google.android.exoplayer:exoplayer-hls:2.17.1).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/com/google/android/exoplayer/exoplayer-hls/2.17.1/exoplayer-hls-2.17.1.aar

* 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 19s
Exception: Gradle task assembleDebug failed with exit code 1

我尝试了几种解决方案,但都没有成功。我还向ChatGPT和Bard询问过,但他们不能帮助我。如果有人之前遇到过这个问题,请帮助我。

英文:

I add audio_waveforms package on my flutter app but I can't build or run the project. it shows me blow error.

My System Info:
Linux Ubuntu: 22.04.3
flutter: 3.10.6
Dart: 3.0.6

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':audio_waveforms_fix:generateDebugRFile'.
> Could not resolve all files for configuration ':audio_waveforms_fix:debugCompileClasspath'.
   > Failed to transform exoplayer-hls-2.17.1.aar (com.google.android.exoplayer:exoplayer-hls:2.17.1) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-api}.
      > Could not find exoplayer-hls-2.17.1.aar (com.google.android.exoplayer:exoplayer-hls:2.17.1).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/com/google/android/exoplayer/exoplayer-hls/2.17.1/exoplayer-hls-2.17.1.aar

* 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 19s
Exception: Gradle task assembleDebug failed with exit code 1

获取`Failed to transform exoplayer-hls-2.17.1.aar`错误,在安装audio_waveforms包后。

I try several solution but it doesn't work. and also I asked chat GPT and bard but thay couldn't help me. if anyone face with this issue before please help me.

答案1

得分: 0

我终于找到了解决方法。所以,如果您需要使用audio_waveforms Flutter包,只需在您的Linux上安装ffmpeg应用程序。

如何安装ffmpeg?

1- sudo apt-get install software-properties-common

2- sudo add-apt-repository ppa:mc3man/trusty-media

3- sudo apt-get update

4- sudo apt-get dist-upgrade

5- sudo apt-get install ffmpeg

搞定,现在我可以在我的项目中使用audio_waveforms包。

如何在Linux上安装FFmpeg

英文:

I finally find a solution. so If you need to use the audio_waveforms flutter package just install ffmpeg application on your linux.

How install ffmpeg?

1- sudo apt-get install software-properties-common

2- sudo add-apt-repository ppa:mc3man/trusty-media

3- sudo apt-get update

4- sudo apt-get dist-upgrade

5- sudo apt-get install ffmpeg

bingoo now I can use audio_waveforms package in my project.

How to Install FFmpeg on Linux

huangapple
  • 本文由 发表于 2023年8月9日 15:42:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/76865592-2.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定