Dab tsi yog qhov sib txawv ntawm qib thiab Gradlew?
Dab tsi yog qhov sib txawv ntawm qib thiab Gradlew?

Video: Dab tsi yog qhov sib txawv ntawm qib thiab Gradlew?

Video: Dab tsi yog qhov sib txawv ntawm qib thiab Gradlew?
Video: Vim li cas koj lub neej thiaj li tsis txawj muaj nyiaj yog ua cas? ( How to Change your life) 2024, Kaum ib hlis
Anonim

Cov txawv lus dag hauv qhov tseeb tias./ qib qhia tias koj siv a qib ntaub qhwv. Txhua Wrapper yog khi rau ib qho tshwj xeeb version ntawm Gradle , yog li thaum koj thawj zaug khiav ib qho ntawm cov lus txib saum toj no rau qhov muab Gradle version, nws yuav download tau tus coj Gradle kev faib tawm thiab siv nws los ua kev tsim kho.

Raws li qhov sib txawv ntawm Gradle thiab Gradlew yog dab tsi?

Cov txawv lus dag hauv qhov tseeb tias./ qib qhia tias koj siv a qib ntaub qhwv. Txhua Wrapper yog khi rau ib qho tshwj xeeb version ntawm Gradle , yog li thaum koj thawj zaug khiav ib qho ntawm cov lus txib saum toj no rau qhov muab Gradle version, nws yuav download tau tus coj Gradle kev faib tawm thiab siv nws los ua kev tsim kho.

Ib sab saum toj, dab tsi version ntawm gradle kuv muaj? 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.

Tsis tas li ntawd, Gradlew file yog dab tsi?

Cov Gradle wrapper yog batch ntaub ntawv ntawm Windows hu ua qib . bat lossis daim ntawv plhaub ntawm Mac OS X thiab Linux hu ua qib . Thaum koj khiav no tsab ntawv thiab xaiv version ntawm Gradle tsis yog tam sim no, nws yuav raug downloaded txiav.

Gradlew huv dab tsi?

./ gradlew huv . Siv koj qhov project qib wrapper los ua kom tiav koj qhov project huv si txoj hauj lwm. Feem ntau, qhov no tsuas yog txhais tau tias tshem tawm cov npe tsim../ gradlew huv assembleDebug. Ntxiv dua thiab, siv koj qhov project qib wrapper rau execute lub huv si thiab assembleDebug cov hauj lwm, feem.

Pom zoo: