android - 将 Lottie 库添加到 Android Studio 项目中给了我这个:“无法解决依赖关系”
问题描述
我正在尝试使用以下行将 Lottie 库添加到我的 Android 项目中:
implementation 'com.airbnb.android:lottie:2.5.0'
& 同步后显示此错误:
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.airbnb.android:lottie:2.5.0.
Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.airbnb.android:lottie:2.5.0.
Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.airbnb.android:lottie:2.5.0.
Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.airbnb.android:lottie:2.5.0.
我也尝试添加其他 Lottie 版本,但仍然显示相同的错误。我正在使用 Android Studio 3.2 和目标 SDK 是 28。请帮助我如何解决这个问题。
解决方案
推荐阅读
- c++ - 虚幻引擎生成 Actor
- python - 一个回调中的两个 Datepicker Dash Plotly Python
- kubernetes - Kubernetes 中的 apiserver_request_duration_seconds prometheus 指标是什么意思?
- regex - Pentaho 中的正则表达式
- processing - 在球体上尝试曲线。似乎无法正确理解曲线的上升和下降
- google-app-engine - 在 App 引擎标准中安装二进制文件(gactions)
- built-in - 内置函数“highestbars”有错误吗?
- c# - 如何在 WFP C#.Net 中拆分相交标签?
- qt - 如何处理已弃用的 Qt3DRender::QBuffer::BufferType?
- wordpress - 如何使用多个变量更改 WooCommerce 中的“选择选项”文本