gradle Android工作室:无法解析:litr:litr:1.1.0在我的安卓应用中使用cloudinary时

wljmcqd8  于 2022-11-14  发布在  Android
关注(0)|答案(1)|浏览(152)

我正在构建使用Cloudinary上传图像和视频的Android应用程序。我在前端和后端都使用AndroidX。我有所有相关的依赖项,如implementation 'com.cloudinary:cloudinary-android:1.30.0'implementation 'com.linkedin.android.litr:litr:1.1.0',但在构建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.
==============================================================================

有什么我遗漏或做错的吗?任何帮助都将不胜感激。

moiiocjp

moiiocjp1#

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

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

相关问题