Cordova package vue project configuration gradle environment variable

win10 uses cordova to package the vue project. Before that, gradle has been manually downloaded and the environment variable has been set. Gradle-v is valid, but when packaging, the command line will also download gradle?. Is it because gradle can only be placed in the c:/User/ {name} / .gradle directory?

Mar.01,2021

according to my own project, gradle will be reinstalled, and different versions of gradle will be installed with different versions of Android. Maybe it's Cordova's problem ~


do you use gradle wrapper when you pack? That is downloaded and run through the gradlew script under the project project. If your IDE configuration uses gradle wrapper instead of the local gradle executable, it will be downloaded.

although I have not directly used cordova, I have used ionic, underneath using cordova. This thing seems to be packaged directly using gradle wrapper under android sdk to perform android projects, so it will be downloaded directly. You can see that the gradle downloaded by gradle wrapper is in the ~ / .gradle / wrapper/ directory

.
Menu