Dab tsi version ntawm Java siv gradle?
Dab tsi version ntawm Java siv gradle?

Video: Dab tsi version ntawm Java siv gradle?

Video: Dab tsi version ntawm Java siv gradle?
Video: Tsev Niam Ntiav - Yeeb Yam Vwj [New Single 2021-2022] 2024, Kaum ib hlis
Anonim

Gradle tau nkaus xwb Java version 8 los yog siab dua. Gradle tseem txhawb kev suav sau, sim, tsim Javadoc thiab ua tiav daim ntawv thov rau Java 6 thiab Java 7.

Raws li txoj cai, kuv muaj qhov gradle version twg?

Hauv Android Studio, mus rau File> Project Structure. Tom qab ntawd xaiv qhov "project" tab ntawm sab laug. Koj Gradle version yuav muab tso rau hauv no. Yog tias koj siv lub Gradle wrapper, ces koj qhov project yuav muaj a qib /wrapper/ qib - qhwv.

Qhov thib ob, qhov twg yog qhov kev sib haum xeeb hauv qib? Raws li Gradle cov ntaub ntawv: SourceCompatibility yog "Java version compatibility siv thaum compiling Java qhov chaw." targetCompatibility yog "Java version los tsim cov chav kawm rau."

Kuj paub yog, dab tsi yog gradle rau Java?

Gradle yog ib tug general-purpose build tool Gradle ua kom yooj yim los tsim cov hom phiaj ntawm qhov project - hais Java cov tsev qiv ntawv - los ntawm kev ntxiv ib txheej ntawm cov rooj sib tham thiab prebuilt functionality los ntawm plugins. Koj tuaj yeem tsim thiab tshaj tawm cov kev cai plugins los encapsulate koj tus kheej cov rooj sib tham thiab tsim ua haujlwm.

Puas yog Gradle txhawb Java 13?

A Java version ntawm 8 thiab 13 yog yuav tsum tau ua Gradle . Java 14 thiab tom qab versions tseem tsis tau txhawb nqa.

Pom zoo: