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