Alan Manzato
Alan Manzato

Reputation: 9

Error in gradle when build my project ionic 4 corvova android, anyone help me?

BUILD FAILED in 1s C:\Users\alan-\Desktop\Epacv1\platforms\android\gradlew: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception.


I already installed version 5.6.2 already changed what it asks for, but it is still reading version 4.10.3.

Upvotes: 1

Views: 1806

Answers (2)

dps235
dps235

Reputation: 63

Go to below path in your ionic cordova project

Path : Drive\Your project folder\platforms\android\cordova\lib\builders\GradleBuilder.js

Change minimum supported Gradle version to 5.6.1 there,this will reflect in your project and your project will read 5.6.1 instead of 4.10.3.

In Ionic 4,Change minimum supported gradle version in ProjectBuilder.js in builders folder,then build the app

Upvotes: 2

Swayangjit
Swayangjit

Reputation: 1871

Can you please check your plaforms/android/gradle/wrapper/gradle-wrapper.properties file what is the distributionUrl ?

Upvotes: 0

Related Questions