원인 : 안드로이드 프로젝트 최초 생성 후 빌드 할 경우 인터넷에서 다운 받을 라이브러리를 다운받지 못해 에러 발생
수정 : 컴퓨터에 인터넷 연결 후 재빌드
Unknown host 'dl.google.com'. You may need to adjust the proxy settings in Gradle.
Learn about configuring HTTP proxies in Gradle
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
> Could not resolve com.google.android.gms:play-services-measurement-base:[17.4.1].
Required by:
project :app > com.google.android.gms:play-services-measurement:17.4.1
project :app > com.google.android.gms:play-services-measurement-api:17.4.1
project :app > com.google.android.gms:play-services-measurement-sdk:17.4.1
> Failed to list versions for com.google.android.gms:play-services-measurement-base.
> Unable to load Maven meta-data from https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-measurement-base/maven-metadata.xml.
> Could not HEAD 'https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-measurement-base/maven-metadata.xml'.
> dl.google.com
> Failed to list versions for com.google.android.gms:play-services-measurement-base.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/google/android/gms/play-services-measurement-base/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/com/google/android/gms/play-services-measurement-base/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/com/google/android/gms/play-services-measurement-base/maven-metadata.xml'.
> jcenter.bintray.com
> Could not resolve com.google.android.gms:play-services-measurement-impl:[17.4.1].
Required by:
project :app > com.google.android.gms:play-services-measurement:17.4.1
project :app > com.google.android.gms:play-services-measurement-api:17.4.1
project :app > com.google.android.gms:play-services-measurement-sdk:17.4.1
> Failed to list versions for com.google.android.gms:play-services-measurement-impl.
> Unable to load Maven meta-data from https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-measurement-impl/maven-metadata.xml.
> Could not HEAD 'https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-measurement-impl/maven-metadata.xml'.
> dl.google.com
> Failed to list versions for com.google.android.gms:play-services-measurement-impl.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/google/android/gms/play-services-measurement-impl/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/com/google/android/gms/play-services-measurement-impl/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/com/google/android/gms/play-services-measurement-impl/maven-metadata.xml'.
> jcenter.bintray.com
> Could not resolve com.google.android.gms:play-services-measurement-sdk-api:[17.4.1].
Required by:
project :app > com.google.android.gms:play-services-measurement-api:17.4.1
> Failed to list versions for com.google.android.gms:play-services-measurement-sdk-api.
> Unable to load Maven meta-data from https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-measurement-sdk-api/maven-metadata.xml.
> Could not HEAD 'https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-measurement-sdk-api/maven-metadata.xml'.
> dl.google.com
> Failed to list versions for com.google.android.gms:play-services-measurement-sdk-api.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/google/android/gms/play-services-measurement-sdk-api/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/com/google/android/gms/play-services-measurement-sdk-api/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/com/google/android/gms/play-services-measurement-sdk-api/maven-metadata.xml'.
> jcenter.bintray.com
* 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.
인터넷 연결 후 빌드 결과
반응형
'Android > Build Error' 카테고리의 다른 글
[안드로이드] uses-sdk:minSdkVersion declared in library 에러 해결 방법 (35) | 2021.09.03 |
---|---|
[Android] CMake clean 오류 (CreateProcess error=2 지정된 파일을 찾을 수 없습니다) (0) | 2021.06.29 |
[Android] java.lang.NullPointerException (no error message) (0) | 2021.05.15 |
[Android] Unknown host '알려진 호스트가 없습니다 (35) | 2021.05.15 |
[Android] License for package Android SDK Build-Tools 28.0.3 not accepted. build error (0) | 2021.05.14 |