Cov txheej txheem:

Puas yog gradle siv Java_home?
Puas yog gradle siv Java_home?

Video: Puas yog gradle siv Java_home?

Video: Puas yog gradle siv Java_home?
Video: Mang Vang New Song 2020 - puas yog vim kuv [Official Video] 2024, Kaum ib hlis
Anonim

Gradle siv txhua yam JDK nws pom hauv koj txoj kev. Xwb, koj tuaj yeem teeb tsa JAVA_HOME ib puag ncig kuj sib txawv los taw tes rau lub installation directory ntawm qhov xav tau JDK. Saib tag nrho cov ntawv sau sib raug zoo rau Java, Groovy, Kotlin thiab Android.

Yog li ntawd, puas gradle xav tau Java?

1 Teb. Luv version: JRE rau kev txhim kho thiab khiav, Groovy tsim tsab ntawv sau los ntawm Gradle tus kheej compiler, JDK rau Java qhov chaw code compilation. Yuav kom nruab Gradle thiab khiav Gradle tsim koj xav tau ib JDK lossis JRE uas version tsawg kawg yog 7. Koj tuaj yeem tshawb xyuas JVM version los ntawm kev khiav qib -v.

Tsis tas li ntawd, kuv yuav ua li cas dhau qhov khoom vaj khoom tsev mus rau qib? Siv cov kev xaiv -D hais kom ua kab, koj tuaj yeem hla a system khoom mus rau JVM uas khiav Gradle . Qhov kev xaiv -D ntawm lub qib hais kom ua tau zoo ib yam li qhov kev xaiv -D ntawm java hais kom ua. Koj tuaj yeem teeb tsa system khoom hauv qib . khoom cov ntaub ntawv nrog prefix systemProp.

Nyob rau hauv no txoj kev, gradle khoom nyob qhov twg?

Cov ntaub ntawv thoob ntiaj teb cov khoom yuav tsum muaj nyob hauv koj phau ntawv teev npe hauv tsev:

  • Hauv Windows: C: Cov neeg siv. qib gradle. khoom.
  • Hauv Mac/Linux: /Users//. qib / qib. khoom.

Dab tsi yog gradle siv rau?

Gradle yog ib tug tsim system (qhib qhov chaw) uas yog siv kom automate lub tsev, kuaj, xa tawm thiab lwm yam. “Build. qib ” yog cov ntawv sau uas ib tus tuaj yeem ua haujlwm ua haujlwm. Piv txwv li, txoj haujlwm yooj yim los luam qee cov ntaub ntawv los ntawm ib phau ntawv mus rau lwm qhov tuaj yeem ua los ntawm Gradle tsim tsab ntawv ua ntej tus txheej txheem tsim tiag tiag tshwm sim.

Pom zoo: