Tec*_*jit 5 android visual-studio dart flutter flutter-dependencies
运行我的 flutter 项目后,我收到以下构建失败的异常信息。
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class com.google.android.exoplayer2.ui.DownloadNotificationHelper found in modules jetified-exoplayer-core-2.17.0-runtime (com.google.android.exoplayer:exoplayer-core:2.17.0) and jetified-exoplayer-ui-2.15.1-runtime (com.google.android.exoplayer:exoplayer-ui:2.15.1)
Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.
* 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 3m 26s
Running Gradle task 'assembleDebug'... 208.9s
Exception: Gradle task assembleDebug failed with exit code 1
Run Code Online (Sandbox Code Playgroud)
我目前使用的是Flutter的最新版本,即版本2.10.1。同样在我的项目中,我使用了“better_player”pub 包。
请给我一个解决方案。
小智 0
在文件末尾的 dependency 中的 app/build.gradle 中添加以下依赖项 -
实现 'com.google.android.exoplayer:exoplayer:2.17.0'
例子 -
dependencies {
...
implementation 'com.google.android.exoplayer:exoplayer:2.17.0'
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1880 次 |
最近记录: |