Android Studio Update: Some conflicts found in installation area

Android StudioIntellij Idea

Android Studio Problem Overview


When I start Android Studio, it shows popup regarding new update of 1.1 release. But when I start updating, After downloading all patch files, while restarting, it shows following error:

enter image description here

I searched almost everywhere on Google and Stackoverflow. There are already two questions on so: this and this. But none of them are have any correct answer. I also tried running as administrator, restarting PC, turning off the firewall, uninstalling antivirus. But none of them worked.

I am using windows 7 32-bit. How to solve this problem? Can anyone help?

Android Studio Solutions


Solution 1 - Android Studio

I know this is an older question but I encountered the same error while updating SDK components in Android Studio 2.3.3. I was able to fix the problem by starting the SDK manager and un-checking the components that showed the error and clicked "Apply". That un-installed just that component. When it was finished, I re-checked the component and clicked "Apply" again. When it was finished, the problematic component was updated to the newest version. This was much quicker than doing a full un-install/re-install as stated in one of the solutions above.

Hope this helps someone.

Solution 2 - Android Studio

This is another option, it is not much easier than reinstalling but at least you don't have to worry about your settings getting lost

  1. Go to help->about and note the version you currently have installed
  2. Download zip file for your current version at https://developer.android.com/studio/archive
  3. Manually overwrite conflicted files with files from zip
  4. Update normally

Solution 3 - Android Studio

I had a similar problem on some other files and could not figure it out.

You should download the last Android Studio version and remove the old one.

Solution 4 - Android Studio

It appears like the only way to bypass this error and successfully update Android Studio is to uninstall and reinstall it.

  • Before uninstalling, make a backup of your IDE settings through File | Export Settings.
  • Download the "No SDK tools included" exe from the Other Downloads section. Avoid using download accelerators as they often mess up the downloads from https://dl.google.com .
  • In the Install Wizard, you may uncheck to update AVD if you use Genymotion and don't need Google's Android emulator.

Solution 5 - Android Studio

Use the JetBrains Toolbox for Android Studio update, problem solved. No need to mess with the file permissions. Especially on company devices.

Solution 6 - Android Studio

I had this issue on Ubuntu 18.04 when tried to update Android Studio from 3.4 to 3.5 version. I have changed Android Studio directory's ownership to my user:

sudo chown -R <username> /opt/android-studio

It resolved all but one errors for me, because I still had a jre/bin/java - Access Denied error, which I have resolved by killing its process:

# The second column of this command's output is PID.
ps -aux | grep /opt/android-studio/jre/bin/java

kill <PID>

Solution 7 - Android Studio

You should check the JDK Location settings, which appears be changed on every Android Studio update, with commands ctrl + Alt + Shift + S (to reveal the Project Structure menu options, and uncheck the Use embedded JDK and find your current JDK Location, on windows machines, you can see that location on environment variables JAVA_HOME.

Solution 8 - Android Studio

There is a workaround, try deleting or moving the files that are causing the conflicts to another folder when the Update starts NOT BEFORE! That worked for me.

Solution 9 - Android Studio

I know this is a very old question, but I face this issue almost every time I try to update my studio. Only solution I know which works for sure is clean install of studio....which is time consuming. So the solution is when you get to know the name of the file, search the location of that folder containing specified file. Check if that folder has lock icon on it, if it has then change the sharing settings to everyone and share the folder. If it does not have the lock icon on the folder check if it is in read-only mode. This worked for me hopefully someone finds this useful. Cheers.

Solution 10 - Android Studio

  1. It might also happen that you need to logout and and re login as admin user in your system.
  2. Update the Android studio [in admin user].
  3. Re login as a previous user.

Solution 11 - Android Studio

I had a similar problem. What I did was to make sure of the whole folder's ownership. For some reason, some files where owned by root, so I changed it to my ownership. In linux you can use the followoing command on the Android Studio folder:

sudo chown yourusername:yourusername -R android-studio-folder

I just tried again and everything updated successfully. Hope it helps!

Solution 12 - Android Studio

The only solution worked for me is I have reinstalled Android Studio the latest version without uninstalling manually it and when starting the installer it asked me to uninstall and said that your settings will not be lost so I checked the uninstall and everything went smooth without any problems and got the latest version installed and all my settings the same.

Solution 13 - Android Studio

I had this symptom when updating from Android Studio 3.4.2 to 3.5.

In my case, the affected file was plugins/Kotlin/kotlinc/bin/kotlinc.

The cause turned out to be that while the file's contents had not been modified at all... the Unix permissions bits on it had been.

Specifically, this was a file that comes as non-executable, and I had at some point chmod'd it to executable (because it should be) in order to use it from the command line.

The fix was to set those permissions bits back, with chmod:

$ chmod a-x /PATH/TO/android-studio/plugins/Kotlin/kotlinc/bin/*

This probably isn't a super common cause for this symptom, but hopefully it will be helpful to someone else. :-) I certainly didn't remember making that change, though once I spotted it I know exactly why I made it.

Solution 14 - Android Studio

You can found the files in the android-sdk folder, and delete those files, and check your permission of the folder(android-sdk, build-tools, tools), if your can write, and download again.

I solve the issue.

Solution 15 - Android Studio

I had the same error when upgrading from 3.1.x to 3.5.x. What worked for me was downloading the new Android Studio image from https://developer.android.com/studio and installing it (when asking me if I want to replace the old version I said yes). Everything seems to work fine now.

Solution 16 - Android Studio

I also had the same error when upgrading from 3.5 to 3.6, I managed to solve this without losing any sdk platforms and virtual machines in avd by installing the latest version of android,First Export the settings and then delete the two folders ".AndroidStudio3.x" in home directory and the "android-studio" in /usr/local or /opt directory, then download the zip file of latest version of android studio and move the "android-studio" folder to /usr/local or /opt. Now run the /android-studio/bin/studio.sh and import the settings,Now Latest version will be installed.

Solution 17 - Android Studio

I got this error when I was trying to upgrade Android Studio using a different user account to the account that installed Android Studio (the account had admin privileges). When I switched to the account which installed Android Studio I was able to upgrade without this problem happening.

Solution 18 - Android Studio

I have had a similar issue and solved it. Some documents were encrypted by the software installed on my PC, so updating to Android Studio 3.6 was not possible (in fact every update I have the same issue).

enter image description here

To solve it, just find those files in the Android Studio installation folder (probably Program Files/Android) and decrypt it. After that, you should be good to go. I hope it helps!

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionKrupal ShahView Question on Stackoverflow
Solution 1 - Android StudioZoccadoumView Answer on Stackoverflow
Solution 2 - Android StudioigiView Answer on Stackoverflow
Solution 3 - Android StudioGorcynView Answer on Stackoverflow
Solution 4 - Android StudioAditya NaiqueView Answer on Stackoverflow
Solution 5 - Android StudioHaominView Answer on Stackoverflow
Solution 6 - Android StudioYamashiro RionView Answer on Stackoverflow
Solution 7 - Android StudioRichard LeeView Answer on Stackoverflow
Solution 8 - Android StudioYouness DahrView Answer on Stackoverflow
Solution 9 - Android StudioSwapnil KadamView Answer on Stackoverflow
Solution 10 - Android StudioAnup AmmanavarView Answer on Stackoverflow
Solution 11 - Android StudioLuis SantiagoView Answer on Stackoverflow
Solution 12 - Android StudiodaliaessamView Answer on Stackoverflow
Solution 13 - Android StudioGreg PriceView Answer on Stackoverflow
Solution 14 - Android StudiolinetView Answer on Stackoverflow
Solution 15 - Android StudioemdobView Answer on Stackoverflow
Solution 16 - Android StudioBhanu PrakashView Answer on Stackoverflow
Solution 17 - Android StudioEdmund JohnsonView Answer on Stackoverflow
Solution 18 - Android StudioRobert PopaView Answer on Stackoverflow