gpt4 book ai didi

react-native - react native 删除代理

转载 作者:行者123 更新时间:2023-12-04 05:18:44 28 4
gpt4 key购买 nike

我在取消代理设置时遇到问题。我在所有我能想到的地方都删除了代理。

这是我收到的错误:

$ react-native run-android                   
Starting JS server...
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Starting a Gradle Daemon (subsequent builds will be faster)

> Configure project :app
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

> Configure project :react-native-oauth
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.4.
Android SDK Build Tools 27.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.


FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not resolve com.github.delight-im:Android-AdvancedWebView:v3.0.0.
Required by:
project :app > project :react-native-oauth
> Could not resolve com.github.delight-im:Android-AdvancedWebView:v3.0.0.
> Could not get resource 'https://jcenter.bintray.com/com/github/delight-im/Android-AdvancedWebView/v3.0.0/Android-AdvancedWebView-v3.0.0.pom'.
> Could not HEAD 'https://jcenter.bintray.com/com/github/delight-im/Android-AdvancedWebView/v3.0.0/Android-AdvancedWebView-v3.0.0.pom'.
> Connect to 172.31.1.4:8080 [/172.31.1.4] failed: connect timed out

* 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 2m 48s
9 actionable tasks: 1 executed, 8 up-to-date

我所做的如下:

$ npm config delete http-proxy
npm config delete https-proxy

npm config rm proxy
npm config rm https-proxy

我已经通过/etc/environment 文件检查了。
检查了 android/gradle.properties

$ env | grep proxy
#outputs nothing
$ unset http_proxy https_proxy all_proxy HTTP_PROXY HTTPS_PROXY ALL_PROXY # Still did this for a local bash

在我的项目的根文件夹中,我使用以下方法搜索代理:

$ grep -iRl ./android -e "172.31.1.4"
#no output

如何解决此错误?

最佳答案

尝试通过删除所有内容来解决

systemProp.http.proxyHost
systemProp.http.proxyPort

systemProp.https.proxyHost
systemProp.https.proxyPort

C:/Users/[your_user_name]/.gradle/gradle.properties 文件中

关于react-native - react native 删除代理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52835121/

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