./gradlew生成APK失败

问题描述

我有一个React Native应用,可以在模拟器上正常工作。我正在尝试建立其APK文件。我遵循了this教程。

但是,当我运行命令./gradlew assembleRelease时,出现此错误

FAILURE: Build Failed with an exception.

* What went wrong: Could not determine the dependencies of task ':app:lintVitalRelease'.
> Could not resolve all task dependencies for configuration ':app:lintClasspath'.
   > Could not resolve com.android.tools.lint:lint-gradle:26.5.3.
     required by:
         project: app
      > Could not resolve com.android.tools.lint:lint-gradle:26.5.3.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle/26.5.3/lint-gradle-26.5.3.pom'.
            > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle/26.5.3/lint-gradle-26.5.3.pom'.
               > Connect to dl.google.com:443 [dl.google.com/2404:6800:4009:80a:0:0:0:200e] Failed: Network is unreachable (connect Failed)

* 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

Deprecated Gradle features were used in this build,making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD Failed in 8s

我四处寻找解决方案,发现了this个StackOverflow问题,其答案提供了pom文件

但是我不知道放在哪里。

如何解决错误

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...