Android Studio:无法解决:com.linkedin.android.litr:litr:1.1.0在我的Android应用中使用Cloudinary时

发布于 2025-02-03 14:52:29 字数 1695 浏览 5 评论 0原文

我正在构建使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

落花浅忆 2025-02-10 14:52:29

尝试在build.grade(project) 中键入此行

repositories { 
maven{ 
url "https://maven.google.com"
} }

try to type this line in the build.grade(project)

repositories { 
maven{ 
url "https://maven.google.com"
} }
您的好友蓝忘机已上羡 2025-02-10 14:52:29

文档有些令人困惑,将其用于Android
链接

官方github repo

implementation 'com.cloudinary:cloudinary-android:2.8.0'

(或最新,请参见上述回购)

Docs are somewhat confusing, use this for android
Official github repo link

add the dependency in your gradle (app level)

implementation 'com.cloudinary:cloudinary-android:2.8.0'

(or latest, see the above repo)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文