Android

์•ˆ๋“œ๋กœ์ด๋“œ Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8

๋…ธ๋ฃจ๋ฃฝ 2022. 7. 4. 04:39

Android Gradle plugin requires Java 11 to run.
You are currently using Java 1.8

์•ˆ๋“œ๋กœ์ด๋“œ ์ŠคํŠœ๋””์˜ค ArticFox๋ฒ„์ „๋ถ€ํ„ฐ Compose๊ฐ€ ๋„์ž…๋˜๋ฉด์„œ ์ด๋Ÿฐ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒ๋˜๋Š” ๊ฒƒ์œผ๋กœ ์•Œ๊ณ  ์žˆ๋‹ค.

Compose ํ”„๋กœ์ ํŠธ ๋งŒ๋“ค ๋•Œ๋งˆ๋‹ค ์ด๋Ÿฌ๋‹ˆ๊นŒ ์ •๋ง ๊ท€์ฐฎ๋‹ค์•„ . . . ๐Ÿถ

 

์›์ธ์€ ์ ํ˜€์žˆ๋Š” ๊ทธ๋Œ€๋กœ๋‹ค.

Java์˜ JDK๋ฅผ ์ƒ˜์†ก๋•Œ๋ฌธ์— Java 1.8๋กœ ํ•ด๋†”์„œ ๊ทธ๋Ÿฐ ๊ฑฐ์˜€๋‹ค.

 

ํ˜น์‹œ Java 11์ด ์•ˆ ๊น”๋ ค์žˆ๋‹ค๋ฉด, ์š”๊ธฐ๋กœ ๊ฐ€์„œ ๋‹ค์šด ๋ฐ›์œผ์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค. (์ €๋„ ์—ฌ๊ธฐ์„œ ๋‹ค์šด ๋ฐ›์•˜์Šต๋‹ˆ๋‹ค . . )

https://www.oracle.com/java/technologies/downloads/#java11

 


 

์ž ์ด์ œ ์ง„์งœ ์‹œ์ž‘!

 

โ‘  File - Project Structure - SDK Location์œผ๋กœ ๊ฐ€์„œ JDK์„ค์ •์„ ํด๋ฆญํ•ด์ค€๋‹ค~

๋…ธ๋ž€ ๋ถ€๋ถ„ ํด๋ฆญ! ํด๋ฆญ!

 

โ‘ก Gradle JDK ๋ถ€๋ถ„์„ 1.8์ด ์•„๋‹Œ 11๋กœ ๋ฐ”๊ฟ”์ค€๋‹ค!

์•„๋งˆ ์ œ ์ปดํ“จํ„ฐ ์—ฌ๋Ÿฌ๊ตฐ๋ฐ์— ๊น”๋ ค์žˆ์–ด์„œ ๋’ค์— (2)๊ฐ€ ๋ถ™์—ˆ๋‚˜๋ด์š”......

์˜คํ‚ค์˜คํ‚ค ๋‹ค ๋ˆ„๋ฅด๊ณ ! ๋‹ค์‹œ ๋นŒ๋“œ๋ฅผ ํ•ด๋ณด๋ฉด,

์ž‘๊ณ  ์†Œ๋“•ํ•œ ์ปดํฌ์ฆˆ์˜ Hello Android๋ฅผ ๋ณด์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค..๐Ÿฅบ

 

 

(+) ํ˜น์‹œ JDK 11์„ ์•„์˜ˆ ๋””ํดํŠธ๋กœ ์“ฐ๊ณ  ์‹ถ๋‹ค๋ฉด ํ™˜๊ฒฝ๋ณ€์ˆ˜๋ฅผ ๋ฐ”๊ฟ”์ฃผ์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹น.

์‚ฌ์šฉ์ž ๋ณ€์ˆ˜๊ฐ€ ์•„๋‹ˆ๋ผ ์‹œ์Šคํ…œ ๋ณ€์ˆ˜์ž…๋‹ˆ๋‹ค!!!!! ํ—ท๊ฐˆ๋ฆฌ์ง€ ๋งˆ์…”์š”,,

์ ˆ๋Œ€ ์ œ๊ฐ€ ํ—ท๊ฐˆ๋ ค์„œ 1์‹œ๊ฐ„ ๋‚ ๋ฆฐ ๊ฑฐ ์•„๋‹˜!

 

 

์ €๋Š” ์ด์ œ ๋นจ๋ฆฌ ์ปดํฌ์ฆˆ๋ฅผ ๋ฐฐ์›Œ์•ผ ํ•˜๋Š” ์ƒํ™ฉ์ด๋ผ ์ด๋งŒ!!!!!! ์ด์ด์นผ์นผ!!!!!๐Ÿƒ‍โ™€๏ธ๐Ÿƒ‍โ™‚๏ธ๐Ÿƒ