Navigation

Saturday 11 February 2017

Ionic Gradle Error: build for android


While build the application some time we encountered “gradle” errors. If you encountered any of these errors as shown in screenshots, Please follow these steps.


Step 1:  Download gradle distribution from here.

Step 2: Go to “C:\inetpub\wwwroot\Gradle\ gradle-x.x.x.zip” paste the downloaded zip file at this
location.






Note: In inetpub you have wwwroot folder, but Gradle is created by me you can change this folder
name. If you do not have inetpub\wwwroot folder then you have to Install IIS Manager first. For more details click here



Convert 'Gradle' Folder to an application. And copy the path of zip file by selecting and browse.

Path of Local host:   http://localhost/Gradle/gradle-2.14.1-all.zip;
Following is the step to set environment variable of gradle.  
  1. Right-click on My Computer
  2. Select Properties, then Advanced, then Environment Variables.
  3. Set CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL = http://localhost/Gradle/gradle-2.14.1-all.zip;



After these setting I will hope your app will build successfully.

No comments:

Post a Comment