英文:
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
我尝试了几种解决方案,但都没有成功。我还向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
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
包了。
英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论