[Intelli J 에러 해결] Unknown host 'root'.Please ensure the host name is correct. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.

2024. 12. 10. 22:55·백엔드/spring

 

"스프링 핵심 원리- 기본편 " 강의를 진행하던 중 spring initializr을 활용해 파일을 다운 받고 이를 inteli J에서 open만 해주면 된다는데
나는 계속해서 아래와 같은 오류가 발생하며 제대로 진행이 안되었다.

 

Unknown host 'root'. Please ensure the host name is correct. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.

 

 

이를 해결하기 위해 여러가지를 시도해봤는데

 

먼저,

  1. IntelliJ에서 프로젝트 설정을 열기:
    • 메뉴에서 File > Project Structure로 이동.
  2. Project Settings > Project에서 다음 항목 확인:
    • Project SDK: 사용하고자 하는 자바 버전으로 설정
    • Project language level: 사용하고자 하는 자바 버전으로 설정

2. Gradle JVM 설정 확인

  1. IntelliJ 메뉴에서 File > Settings로 이동.
  2. Build, Execution, Deployment > Build Tools > Gradle로 이동.
  3. 다음 설정 확인:
    • Gradle JVM: 사용하고자 하는 자바 버전으로 설정

 

이렇게 자바 버전을 맞추어 주었는데도 에러가 해결이 안됐다.

 

그러다 시도한게 터미널에서

 

sdk install gradle

 

 

를 통해 gradle 설치하기....

 

당연히 gradle이 깔려있는 줄 알았는데 설치가 안되어있어서 계속 오류가 발생했던 것이다...

 

gradle wrapper를 사용하면 gradle이 설치하지 않아도 자동으로 다운로드 돼서 사용할 수 있다고는 한데 나는 그게 적용이 안되었는지 gradle설치가 안되어서 발생하는 오류가 생긴 것이였다...

 

 

 

'백엔드 > spring' 카테고리의 다른 글

Java 프로그래밍 기초2  (4) 2025.08.08
Java 프로그래밍 기초  (4) 2025.08.07
asserThat 사용 안됨 문제 해결 (import해도 안되는 경우)  (0) 2025.03.30
[Spring] java.lang.NoClassDefFoundError: org.springframework.core.NestedIOException 해결  (2) 2025.01.22
[spring] intellij 로 새 프로젝트 시작시 Unknown host 'root'.Please ensure the host name is correct. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle 오류 문구 해결  (0) 2024.07.31
'백엔드/spring' 카테고리의 다른 글
  • Java 프로그래밍 기초
  • asserThat 사용 안됨 문제 해결 (import해도 안되는 경우)
  • [Spring] java.lang.NoClassDefFoundError: org.springframework.core.NestedIOException 해결
  • [spring] intellij 로 새 프로젝트 시작시 Unknown host 'root'.Please ensure the host name is correct. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle 오류 문구 해결
hiwon
hiwon
천천히 굴러가는 코딩일기
  • hiwon
    하이원의 코딩 일기
    hiwon
  • 전체
    오늘
    어제
    • 분류 전체보기 (83)
      • 프론트엔드 (0)
        • react (0)
      • 백엔드 (13)
        • node.js (1)
        • spring (6)
      • 코딩테스트 (57)
        • 백준 (41)
        • 프로그래머스 (15)
      • 프로디지털아카데미 (9)
        • 클라우드 (1)
        • JavaScript (1)
      • github (1)
      • AWS (2)
      • Infra (1)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    UnionFind
    프로그래머스
    Java
    투포인터
    BFS
    github
    프로디지털아카데미
    신한투자증권
    EC2
    백트래킹
    kdt교육
    프디아
    깃허브
    MSA
    알고리즘
    파이썬
    spring
    bastion host
    IT기획
    알파코캠퍼스
    그리디
    K디지털트레이닝
    백준
    python
    AWS
    알파코
    다익스트라
    백엔드
    코테
    코딩테스트
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.0
hiwon
[Intelli J 에러 해결] Unknown host 'root'.Please ensure the host name is correct. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
상단으로

티스토리툴바