상황

프로젝트 파일 실행시 grable이 전혀 빌드가 되지 않고 

java.io.StreamCorruptedException: invalid type code: 00
> invalid type code: 00

* Try:
> 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.

다음 문구가 터미널에 출력 되는 상황

 

원인

주로 gradle의 버전이 맞지 않아서 발생한다고 한다.

해결법

settings -> Preferences -> Build, Execution, Deployment -> Build Tools -> Gradle

경로에서 설정된 Gradle의 JVM이 Spring 프로젝트를 만들었을 때 설정한 jdk와 동일하게 맞추어 주면 된다.

+ Recent posts