๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

Lang/โ˜• Java

โœ… solved * Java version ERROR ( feat. Intelli J )

์นดํ…Œ๊ณ ๋ฆฌ๋ฅผ ๋ญ๋กœ ํ•ด์•ผ ํ•  ๊นŒ ํ•œ์ฐธ๊ณ ๋ฏผํ•˜๋‹ค๊ฐ€... ๊ทธ๋ƒฅ Java version ๊ด€๋ จ ๋‚ด์šฉ์ด๋ผ Java๋กœ ํ•˜๊ธฐ๋กœ ๊ฒฐ์ •..

 

Cause: com/android/tools/idea/gradle/run/OutputBuildAction has been compiled by a more recent version of

the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

 

์›์ธ์ด ๋ญ์•ผ ใ… 

์ž๋ฐ”๋ฒ„์ „์˜ ๋ฌธ์ œ๋‹ค. ์ข€ ๋” ์ž์„ธํžˆ ๋งํ•˜์ž๋ฉด ์ด ๊ฒฝ์šฐ๋Š” gradle์˜ ์ž๋ฐ”๋ฒ„์ „ ๋ฌธ์ œ์ด๋‹ค.

์˜ค๋ฅ˜ ๋ฉ”์‹œ์ง€๋ฅผ ์ž˜ ๋ณด๋ฉด tools/idea/gradle/run ์ด๋ผ๊ณ  ๋˜์–ด ์žˆ๋Š” ๊ฒƒ์„ ๋ณผ ์ˆ˜ ์žˆ๋‹ค.

55.0์€ Java 11 ์„ ์˜๋ฏธํ•˜๊ณ , 52.0์€ Java 8์„ ์˜๋ฏธํ•œ๋‹ค.

stack overflow

 

ํ•ด๊ฒฐํ•ด์กฐ..

์ž๋ฐ” 11์„ ์„ค์น˜ํ•ด์„œ ๋ฒ„์ „์„ ๋งž์ถฐ์ฃผ๋ฉด ๋Œ์•„๊ฐ„๋‹ค.

  1. ์ž๋ฐ” 11์„ ์„ค์น˜ํ•œ๋‹ค.
  2. ์‚ฌ์šฉํ•˜๋Š” ํ”„๋กœ์ ํŠธ์˜ JDK๋ฅผ 11๋กœ ๋ฐ”๊ฟ”์ค€๋‹ค.

 

์“ฐ๋‹ˆ๋Š” IntelliJ๋ฅผ ์‚ฌ์šฉํ•˜๋‹ค๊ฐ€ ์˜ค๋ฅ˜๋ฅผ ๋ฐœ๊ฒฌํ–ˆ์ง€๋งŒ,

์‚ฌ์‹ค์ด๊ฑด ํˆด์˜ ๋ฌธ์ œ๊ฐ€ ์•„๋‹ˆ๋ผ ๋ฒ„์ „์ž์ฒด์˜ ๋ฌธ์ œ์ด๊ธฐ ๋•Œ๋ฌธ์— ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์€ ์ƒ์„ธํ•˜๊ฒŒ ๋„ฃ์ง€ ์•Š์•˜๋‹ค ๐Ÿคง.

๋”๋ณด๊ธฐ

Intelli J ์—์„œ ์„ค์ • ๋ฐฉ๋ฒ•!

์ž์„ธํ•œ ๋‚ด์šฉ์€ ์•„๋ž˜ ์ด๋ฏธ์ง€ ์ฐธ์กฐ!

 

  1. ์ƒ๋‹จ ๋ฉ”๋‰ด์—์„œ Preferences ์ฐฝ์„ ์—ด์–ด์ค€๋‹ค.
  2. Gradle์„ ๊ฒ€์ƒ‰ํ•˜์—ฌ Gradle JVM์˜ JDK ๋ฒ„์ „์„ ์ˆ˜์ •ํ•ด์ค€๋‹ค.

 

[ ์‚ฌ์šฉํ•˜๋Š”_ํˆด์˜_์ด๋ฆ„ ํ”„๋กœ์ ํŠธ JDK ๋ฒ„์ „ ๋ฐ”๊พธ๊ธฐ ] ์ด๋Ÿฐ ๋‚ด์šฉ์œผ๋กœ ๊ฒ€์ƒ‰ํ•˜๋ฉด ๋‚˜์˜ฌ ๊ฒƒ์ด๋‹ค.

 

 


Thanks for ๐Ÿ™ˆ