Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tag mismatch error-Android studio

Tags:

android

xml

I have trying for hours surfing online almost through every link both on stack overflow and google, but I couldn't find a possible solution for the Tag Mismatch error!

I updated my android studio to the version 2.3 on ubuntu 16.04 lts. Before that it was working perfectly. During the download, an error occurred saying the tag mismatch and I couldn't download Intel x86 Atom Image. Later on, I found the same error saying that Gradle project sync failed, Tag Mismatch!

After trying almost everything I had to go for un-installing and installing again! To un-install I followed this.

Then I to re-install I followed this.

But still the same error with syncing.

If you need more info let me know!

like image 550
Pushan Gupta Avatar asked Mar 15 '17 06:03

Pushan Gupta


2 Answers

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.

like image 70
Moulaye Abderrahmane Avatar answered Nov 18 '22 02:11

Moulaye Abderrahmane


  • 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

like image 3
Codemaker Avatar answered Nov 18 '22 03:11

Codemaker