Error:Unknown host services.gradle.org. You may need to adjust the proxy settings in Gradle

后端 未结 16 2055
有刺的猬
有刺的猬 2020-12-15 08:38

i have tried it many times but its giving me same error.how to set the proxy so that this error is solved

相关标签:
16条回答
  • 2020-12-15 08:56

    Update your project level build.gradle to latest version - it works for me

    classpath 'com.android.tools.build:gradle:3.2.1'
    classpath 'com.google.gms:google-services:4.2.0'
    
    0 讨论(0)
  • 2020-12-15 08:57

    I had the same problem. What worked for me was:

    Go to File>Invalidate caches/restart>Invalidate and restart.

    Hope it works for you too.

    If that doesn't work, give your system access to internet and click on Help>Check for Updates. And update android studio to latest versions. All gradle along with plugins will be updated and i guess it should resolve the issue.

    0 讨论(0)
  • 2020-12-15 08:57

    Check your internet connection is stable or not. May be this will work with you

    0 讨论(0)
  • 2020-12-15 08:58

    Go To: File --> Setting --> Build, Execution, Deployment --> Gradle, then tick the use local Gradle distribution, then set Gradle home by giving path to Gradle. Tick offline work.

    Like so:

    0 讨论(0)
  • 2020-12-15 08:59

    Go to..

    File > Settings > Appearance & Behavior > System Settings > HTTP Proxy Enable following option Auto-detect proxy settings

    and press checkConnection button for test

    0 讨论(0)
  • 2020-12-15 09:01

    make sure that you disable the proxy setting. settting > apperance and behaviour > Http Proxy > and select no proxy check box and check the connection after you select no proxy or auto detect proxy setting > the apply ok

    0 讨论(0)
提交回复
热议问题