Tag mismatch error - android studio

Iโ€™ve been trying to surf the Internet for hours on almost every link to both the stack overflow and google, but I couldnโ€™t find a possible solution for the tag mismatch error!

I upgraded my android studio to version 2.3 on ubuntu 16.04 lts. Prior to that, it worked perfectly. An error occurred during the boot process that caused the tag mismatch, and I could not boot the Intel Atom X86. Later, I found the same error saying that Gradle was unable to synchronize the project, tag mismatch!

Having tried almost everything that I had to leave to install and install again! To remove the installation, I performed this one .

Then I reinstall, I followed this up .

But still the same error during synchronization.

If you need more information let me know!

+5
source share
2 answers

I had this problem before caused by incomplete gradle loading.

Go to the .gradle folder, for me it's in /home/myusername/.gradle/wrapper/dists/gradle-2.14.1-all/8bnwg5hd3w55iofp58khbp6yvs/ , pay attention to your gradle file name (for example, 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 downloaded file you damaged.

+3
source

Just replace the dependency:

 if (gradle.gradleVersion >= "2.2") { dependencies { classpath 'com.android.tools.build:gradle:1.5.0' } } else if (gradle.gradleVersion >= "2.1") { dependencies { classpath 'com.android.tools.build:gradle:2.1+' } } else { dependencies { classpath 'com.android.tools.build:gradle:2.8' } } 

with:

 if (gradle.gradleVersion >= "2.2") { dependencies { classpath 'com.android.tools.build:gradle:1.5.0' } } else if (gradle.gradleVersion >= "2.1") { dependencies { classpath 'com.android.tools.build:gradle:2.2+' } } else { dependencies { classpath 'com.android.tools.build:gradle:2.8' } } 

You should replace only the gradle version number.

0
source

Source: https://habr.com/ru/post/1265472/


All Articles