Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native React本机删除代理_React Native_Proxy - Fatal编程技术网

React native React本机删除代理

React native React本机删除代理,react-native,proxy,React Native,Proxy,我在取消设置代理服务器时遇到问题。我已经把代理移到了我能想到的任何地方 这是我收到的错误: $ react-native run-android Starting JS server... Building and installing the app on the device (cd android && ./gradlew installDebug)... Starting a Gradle Daemon (subsequent bui

我在取消设置代理服务器时遇到问题。我已经把代理移到了我能想到的任何地方

这是我收到的错误:

$ 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\u user\u name]/.gradle/gradle.properties文件中