问答

yarn android时,获取连接报错

作者:admin 2021-05-09 我要评论

Invalid https.proxyPort '', using default 443Invalid https.proxyPort '', using default 443Invalid https.proxyPort '', using default 443Invalid https.p...

在说正事之前,我要推荐一个福利:你还在原价购买阿里云、腾讯云、华为云服务器吗?那太亏啦!来这里,新购、升级、续费都打折,能够为您省60%的钱呢!2核4G企业级云服务器低至69元/年,点击进去看看吧>>>)
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443
Invalid https.proxyPort '', using default 443

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

FAILURE: Build failed with an exception.

 What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
 > Could not resolve androidx.multidex:multidex:2.0.0.
 Required by:
 project :app
 > Could not resolve androidx.multidex:multidex:2.0.0.
 > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/multidex/multidex/2.0.0/multidex-2.0.0.pom'.
 > Could not GET 'https://dl.google.com/dl/android/maven2/androidx/multidex/multidex/2.0.0/multidex-2.0.0.pom'.
 > Connect to dl.google.com:443 [dl.google.com/203.208.46.146] failed: Connection timed out: connect
 > Could not resolve androidx.swiperefreshlayout:swiperefreshlayout:1.0.0.
 Required by:
 project :app
 project :app > com.facebook.react:react-native:0.63.4
 > Could not resolve androidx.swiperefreshlayout:swiperefreshlayout:1.0.0.
 > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/swiperefreshlayout/swiperefreshlayout/1.0.0/swiperefreshlayout-1.0.0.pom'.
 > Could not GET 'https://dl.google.com/dl/android/maven2/androidx/swiperefreshlayout/swiperefreshlayout/1.0.0/swiperefreshlayout-1.0.0.pom'.
 > Connect to dl.google.com:443 [dl.google.com/203.208.46.146] failed: Connection timed out: connect
 > Could not resolve androidx.appcompat:appcompat:1.0.2.
 Required by:
 project :app > project :react-native-audio
 > Could not resolve androidx.appcompat:appcompat:1.0.2.
 > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/appcompat/appcompat/1.0.2/appcompat-1.0.2.pom'.
 > Could not GET 'https://dl.google.com/dl/android/maven2/androidx/appcompat/appcompat/1.0.2/appcompat-1.0.2.pom'.
 > Connect to dl.google.com:443 [dl.google.com/203.208.46.146] failed: Connection timed out: connect
 > Could not resolve androidx.appcompat:appcompat:1.0.2.
 Required by:
 project :app > com.facebook.react:react-native:0.63.4
 > Could not resolve androidx.appcompat:appcompat:1.0.2.
 > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/appcompat/appcompat/1.0.2/appcompat-1.0.2.pom'.
 > Could not GET 'https://dl.google.com/dl/android/maven2/androidx/appcompat/appcompat/1.0.2/appcompat-1.0.2.pom'.
 > Connect to dl.google.com:443 [dl.google.com/203.208.46.146] failed: Connection timed out: connect
 > Could not resolve androidx.appcompat:appcompat:1.0.2.
 Required by:
 project :app > com.github.czy1121:settingscompat:1.1.4
 > Could not resolve androidx.appcompat:appcompat:1.0.2.
 > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/appcompat/appcompat/1.0.2/appcompat-1.0.2.pom'.
 > Could not GET 'https://dl.google.com/dl/android/maven2/androidx/appcompat/appcompat/1.0.2/appcompat-1.0.2.pom'.
 > Connect to dl.google.com:443 [dl.google.com/203.208.46.146] failed: Connection timed out: connect

 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 45m 43s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

问题出现的环境背景及自己尝试过哪些方法

  1. 已执行过tyarn命令
  2. 试过翻墙软件
  3. 更改过host文件
  4. 如下图所示configuring执行了50多分钟 然后有了上文的报错

ps: 这些依赖好像都是用的implementation引入的

image

版权声明:本文转载自网络,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。本站转载出于传播更多优秀技术知识之目的,如有侵权请联系QQ/微信:153890879删除

相关文章
  • grom设置json默认值

    grom设置json默认值

  • Vue路由报错,看着没问题

    Vue路由报错,看着没问题

  • 思否邮箱登录为什么区分大小写了呢?

    思否邮箱登录为什么区分大小写了呢?

  • 有没有能够直接上传markdown文件作为博

    有没有能够直接上传markdown文件作为博

腾讯云代理商
海外云服务器