安装audio_waveforms包后出现“无法转换exoplayer-hls-2.17.1.aar”错误。

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

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

安装audio_waveforms包后出现“无法转换exoplayer-hls-2.17.1.aar”错误。

我尝试了几种解决方案,但都没有成功。我还向GPT和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

安装audio_waveforms包后出现“无法转换exoplayer-hls-2.17.1.aar”错误。

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.html
匿名

发表评论

匿名网友

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

确定