Android Studio Update: Some conflicts found in ins

2019-01-17 14:26发布

问题:

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:

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?

回答1:

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.



回答2:

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.



回答3:

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.


回答4:

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


回答5:

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.



回答6:

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.



回答7:

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.



回答8:

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.



回答9:

It may can not be a solution. But it worked for me.

Is your androidstudio folder's path language all in english?
Like D:\Users\(Other Languages)\Android-Studio

My user name was korean and it was cause of the error