Android Studio:无法解决:com.linkedin.android.litr:litr:1.1.0在我的Android应用中使用Cloudinary时
我正在构建使用Cloudinary上传图像和视频的Android应用程序。我在前端和后端都使用Androidx。我有所有相关的依赖项,例如实现'com.cloudinary:cloudinary-android:1.30.0'
和实现'com.linkedin.android.litr:litr:1.1.0'<< /code>,但是在构建gradle时,我会收到以下错误:
Failed to resolve: com.linkedin.android.litr:litr:1.1.0
Show in Project Structure dialog
Affected Modules: app
Failed to resolve: com.linkedin.android.litr:litr:1.1.0
<a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
Affected Modules: <a href="openFile:D:/VU/CS619/BC180405965/ePharmacy/app/build.gradle">app</a>
运行应用程序后,我会收到以下错误:
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.linkedin.android.litr:litr:1.1.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/linkedin/android/litr/litr/1.1.0/litr-1.1.0.pom
- https://repo.maven.apache.org/maven2/com/linkedin/android/litr/litr/1.1.0/litr-1.1.0.pom
- https://www.jitpack.io/com/linkedin/android/litr/litr/1.1.0/litr-1.1.0.pom
Required by:
project :app
project :app > com.cloudinary:cloudinary-android:1.30.0 > com.cloudinary:cloudinary-android-preprocess:1.30.0
* 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.
==============================================================================
有什么我缺少或做错了什么?任何帮助将不胜感激。
I am building the android app that uses Cloudinary to upload images and videos. I am using AndroidX for both frontend and backend. I have all the related dependencies such as implementation 'com.cloudinary:cloudinary-android:1.30.0'
and implementation 'com.linkedin.android.litr:litr:1.1.0'
, but on building the gradle I am getting the following error:
Failed to resolve: com.linkedin.android.litr:litr:1.1.0
Show in Project Structure dialog
Affected Modules: app
Failed to resolve: com.linkedin.android.litr:litr:1.1.0
<a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
Affected Modules: <a href="openFile:D:/VU/CS619/BC180405965/ePharmacy/app/build.gradle">app</a>
and upon running the app, I get the following error:
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.linkedin.android.litr:litr:1.1.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/linkedin/android/litr/litr/1.1.0/litr-1.1.0.pom
- https://repo.maven.apache.org/maven2/com/linkedin/android/litr/litr/1.1.0/litr-1.1.0.pom
- https://www.jitpack.io/com/linkedin/android/litr/litr/1.1.0/litr-1.1.0.pom
Required by:
project :app
project :app > com.cloudinary:cloudinary-android:1.30.0 > com.cloudinary:cloudinary-android-preprocess:1.30.0
* 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.
==============================================================================
Is there anything that I am missing or doing wrong? Any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试在build.grade(project) 中键入此行
try to type this line in the build.grade(project)
文档有些令人困惑,将其用于Android
链接
官方github repo
(或最新,请参见上述回购)
Docs are somewhat confusing, use this for android
Official github repo link
add the dependency in your gradle (app level)
(or latest, see the above repo)