i am not using android studio and i would like to update build.gradle version.
so i have done that change “distributionUrl=https://services.gradle.org/distributions/gradle-3.3-all.zip” to “distributionUrl=https://services.gradle.org/distributions/gradle-4.1-all.zip” on gradle-wrapper.properties.
however, when i build ionic cordova build android --prod --release – -- --keystore=/Users/…/…/…/*.jks–alias=key0
build.gradle version keeps change to “distributionUrl=https://services.gradle.org/distributions/gradle-3.3-all.zip”
i don’t know why it keeps changing.
i would like to know how to update build.gradle version.
and also, i have question that am i right to build apk file?
Thank you for answering my question.
do you know how to upgrade Cordova platforms : android 6.3.0 to 7.1.0 ?
Then please tell me how to update Cordova Platforms : android 6.3.0 to 7.1.0 (not using Android Studio)
I just struggled with the same issue, and, like @Sujan12 said, I removed android platform (ionic cordova platform rm android) and installed the 7.1.0 (ionic cordova platform add android@7.1.0)