gpt4 book ai didi

android - react native 签名的 apk 构建失败的 lint 错误

转载 作者:行者123 更新时间:2023-11-29 15:35:43 25 4
gpt4 key购买 nike

在构建 React Native 应用程序的签名 apk 时遇到此错误。在互联网上搜索了很多解决方案,但没有任何效果。试图将其放入应用程序的 gradle 文件中,但没有成功

lintOptions {
checkReleaseBuilds false
abortOnError false
}

无法解析配置“:react-native-navigation:lintClassPath”的所有文件。

Could not find com.android.tools.lint:lint:26.1.2. Searched in the following locations: file:/Users/apple/Library/Android/sdk/extras/m2repository/com/android/tools/lint/lint/26.1.2/lint-26.1.2.pom file:/Users/apple/Library/Android/sdk/extras/m2repository/com/android/tools/lint/lint/26.1.2/lint-26.1.2.jar file:/Users/apple/Library/Android/sdk/extras/google/m2repository/com/android/tools/lint/lint/26.1.2/lint-26.1.2.pom file:/Users/apple/Library/Android/sdk/extras/google/m2repository/com/android/tools/lint/lint/26.1.2/lint-26.1.2.jar file:/Users/apple/Library/Android/sdk/extras/android/m2repository/com/android/tools/lint/lint/26.1.2/lint-26.1.2.pom file:/Users/apple/Library/Android/sdk/extras/android/m2repository/com/android/tools/lint/lint/26.1.2/lint-26.1.2.jar file:/Users/apple/.m2/repository/com/android/tools/lint/lint/26.1.2/lint-26.1.2.pom file:/Users/apple/.m2/repository/com/android/tools/lint/lint/26.1.2/lint-26.1.2.jar https://jcenter.bintray.com/com/android/tools/lint/lint/26.1.2/lint-26.1.2.pom https://jcenter.bintray.com/com/android/tools/lint/lint/26.1.2/lint-26.1.2.jar file:/Users/apple/Desktop/wecora/node_modules/react-native/android/com/android/tools/lint/lint/26.1.2/lint-26.1.2.pom file:/Users/apple/Desktop/wecora/node_modules/react-native/android/com/android/tools/lint/lint/26.1.2/lint-26.1.2.jar Required by: project :react-native-navigation > com.android.tools.lint:lint-gradle:26.1.2

* 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 40s
85 actionable tasks: 81 executed, 4 up-to-date

最佳答案

对于遇到相同问题的任何人,我通过添加解决了它maven { url 'https://maven.google.com' } 在项目的 gradle 文件中

allprojects {
repositories {
mavenLocal()
jcenter()
maven { url 'https://maven.google.com' }
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}

关于android - react native 签名的 apk 构建失败的 lint 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50765259/

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