gpt4 book ai didi

android - ./gradlew assembleRelease 构建失败,无法找到 com.linkedin.dexmaker :dexmaker:2. 21.0

转载 作者:行者123 更新时间:2023-12-05 05:48:12 26 4
gpt4 key购买 nike

这是一个带有 expo 裸工作流程的 react-native 项目。
./gradlew assembleDebug 正常工作,我能够运行该应用程序。

但是 ./gradlew assembleRelease 构建失败,输出如下:

Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':expo-json-utils:debugAndroidTestRuntimeClasspath'.
> Could not find com.linkedin.dexmaker:dexmaker:2.21.0.
Searched in the following locations:
- file:/Users/<MY USERNAME>/.m2/repository/com/linkedin/dexmaker/dexmaker/2.21.0/dexmaker-2.21.0.pom
- file:/Users/<MY PROJECT PATH>/node_modules/react-native/android/com/linkedin/dexmaker/dexmaker/2.21.0/dexmaker-2.21.0.pom
- file:/Users/<MY PROJECT PATH>/node_modules/jsc-android/dist/com/linkedin/dexmaker/dexmaker/2.21.0/dexmaker-2.21.0.pom
- https://dl.google.com/dl/android/maven2/com/linkedin/dexmaker/dexmaker/2.21.0/dexmaker-2.21.0.pom
- https://repo.maven.apache.org/maven2/com/linkedin/dexmaker/dexmaker/2.21.0/dexmaker-2.21.0.pom
- https://www.jitpack.io/com/linkedin/dexmaker/dexmaker/2.21.0/dexmaker-2.21.0.pom
Required by:
project :expo-json-utils > io.mockk:mockk-android:1.10.6 > io.mockk:mockk-agent-android:1.10.6

expo-json-utils 未在 package.json 依赖项中列出,因此它必须是其中一个包的子依赖项。
jcenter() 添加到 android/build.gradle 并不能解决问题。

有什么想法可以使用 expo-json-utils 或者如何解决这个问题?

最佳答案

jcenter() 添加到 settings.gradle 解决了这个问题:

dependencyResolutionManagement {
repositories {
google()
mavenCentral()
jcenter() // <- this
}
}

关于android - ./gradlew assembleRelease 构建失败,无法找到 com.linkedin.dexmaker :dexmaker:2. 21.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70851323/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com