Kuv puas yuav tsum tau nruab gradle?
Kuv puas yuav tsum tau nruab gradle?

Video: Kuv puas yuav tsum tau nruab gradle?

Video: Kuv puas yuav tsum tau nruab gradle?
Video: puas yog koj ntshai yuav kuv ntsaim vaj 2022 -2023 2024, Hlis ntuj nqeg
Anonim

Gradle yuav tsum tau JDK version 6 lossis tom qab los ua ntsia hauv koj qhov system. Nws siv JDK cov tsev qiv ntawv uas yog ntsia thiab teeb tsa rau JAVA_HOME ib puag ncig hloov pauv. Gradle nqa nws lub tsev qiv ntawv Groovy, yog li ntawd, peb ua tsis muaj yuav tsum tau nruab Groovy qhia meej. Yog nws yog ntsia , uas yog ignored los ntawm Gradle.

Ces, kuv yuav ua li cas manually nruab gradle?

  1. Rub tawm Gradle daim ntawv gradle faib.
  2. Extract cov ntaub ntawv rau qee qhov chaw.
  3. Qhib Android Studio: Cov ntaub ntawv> Chaw> Gradle> Siv cov gradle faib hauv zos taw qhia txoj hauv kev uas koj tau rho tawm cov qhab nia.
  4. nias thov thiab ok.

Ib yam li ntawd, dab tsi version ntawm Gradle raug teeb tsa? Khiav thiab Kev Xeem kev teeb tsa khiav Gradle , type cov qib hauv qhov rais hais kom ua. Rau xyuas Gradle version , hom qib -v hauv qhov rais hais kom ua.

Ib yam li ntawd, kuv yuav nruab gradle qhov twg?

Ntxiv qhov chaw ntawm koj Gradle "bin" folder rau koj txoj kev. Qhib cov cuab yeej system (WinKey + Pause), xaiv "Advanced" tab, thiab "Environment Variables" khawm, tom qab ntawd ntxiv "C: Program Files qib -x.xin” (los yog qhov twg koj unzipped Gradle ) mus rau qhov kawg ntawm koj "Txoj Kev" hloov pauv raws li System Properties.

Kuv yuav teeb tsa gradle li cas?

  1. Nyem OK.
  2. Nyem rau ntawm lub pob Windows nyob rau sab laug hauv qab ntawm lub desktop.
  3. Nyem rau ntawm "Advanced System settings" thiab tom qab ntawd nyem rau ntawm "Environment Variables" khawm.
  4. Nyem rau ntawm “Tshiab…” khawm nyob rau hauv seem “System Variables” thiab sau lub npe sib txawv li 'GRADLE_HOME'.

Pom zoo: