Tag mismatch error-Android studio

I got this problem before, it's caused by an incomplete download of gradle.

Go to your .gradle folder, for me it's in /home/myusername/.gradle/wrapper/dists/gradle-2.14.1-all/8bnwg5hd3w55iofp58khbp6yvs/, note your gradle filename (e.g., gradle-2.14.1-all.zip).

Go to https://services.gradle.org/distributions/ and download the zip file here (e.g., gradle-2.14.1-all.zip), then just replace the corrupted one with you downloaded file.


  • I got this problem before, it's caused by an incomplete or incorrect download of gradle version.

  • Change following line in gradle-wrapper.properties

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

  • Click File --> Invalidate cache / Restart

  • Then click on sync button to sync gradle file

Tags:

Xml

Android