Error:Unknown host 'jcenter.bintray.com'.

后端 未结 8 1822
囚心锁ツ
囚心锁ツ 2020-12-14 23:22

Error:Unknown host \'This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server\'.

相关标签:
8条回答
  • 2020-12-15 00:06

    Sometimes this works for me, when there's a sudden gradle syncing problem which should work fine (or previously worked fine).

    Build with local gradle distribution

    Download a gradle release archive from here to path android-studio/gradle/ folder, and extract it.

    In Android Studio: File > Settings > Build, Execution > Gradle.

    Select 'Use local gradle distribution' under 'Project-level settings'.

    In 'Grade home', browse to the path of the downloaded gradle and select it.

    OK > Sync project.

    P.S. if local gradle is already selected, try reverse i.e. default wrapper.

    0 讨论(0)
  • 2020-12-15 00:14

    Just clean and Rebuild the project. This worked for me

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