Android studio update ubuntu

Как обновить Android Studio в Ubuntu?

Я пытаюсь обновить версию 2.0.0 до версии 2.1.2 в Ubuntu 64bit/14.04LTS, но когда я нажимаю «обновить и перезапустить«, появляется сообщение «Загрузка исправлений» и он закрывается.

Он не запускается снова, и если я пытаюсь открыть его, версия все еще 2.0.0.

Есть ли учебник для ручного обновления Android Studio? (сохранить все настройки и т. д.).

6 ответов

С этим у вас есть чистая установка Android Studio

Затем, когда мне нужно обновить его, я просто перезапустить

Если вы не использовали этот метод, стоит попробовать. Это чище в долгосрочной перспективе.

У меня возникла та же проблема при попытке обновления с 2.1.0 до 2.1.1, и проблема обновления все еще сохранялась после выпуска Android Studio 2.1.2.

В итоге единственным вариантом была чистая установка Android Studio.

Чтобы сохранить существующие настройки Android Studio, загрузите и установите последнюю версию в другую папку. Когда новая установка Android Studio запускается в первый раз, она предложит вам импортировать настройки из более старой версии Android Studio, которую вы установили.

У меня такая же проблема. Я обнаружил, что после загрузки патча Android Studio пытается обновить себя, но, поскольку он запускается без прав sudo, он просто отказывается запускать старую версию Android Studio без обновления.

Чтобы обновить мою старую версию Android Studio, я пошел в папку, где была установлена ​​Android Studio, в моем случае

/ apps / android-studio / bin /, и запустил с помощью sudo Android Studio, в моем случае sudo ./studio. ш

Затем он попросит у вас файл конфигурации Android Studio. Будьте осторожны с тем местом, где в процессе установки будет установлена ​​новая версия Android SDK, потому что в моем случае он хотел установить ее в неправильный каталог, мне пришлось выбрать выборочную установку, чтобы выбрать папку, в которой находился мой предыдущий Android SDK,

Чтобы обновить Android Studio, Android Studio сообщила, что ей нужен доступ для записи в папку «android-studio, в которой она установлена, по умолчанию она находится в» $HOME/android-studio/ «.

Читайте также:  По для никона андроид

Как вы находите разрешения?

  1. Посмотрите руководство на https://ostoday.org/linux/how-to-give-write-permission-to-a-folder-in-linux.html котором есть это видео https://www.youtube.com/watch?v=zR_Ibd-ZOzo
  2. Откройте свой терминал и напишите cd (в некоторых случаях cd $HOME ), чтобы перейти в каталог.
  3. Напишите на терминале ls -l чтобы увидеть список разрешений. Вы можете посмотреть каталог или d разрешил читать r , записывать w и выполнить x для пользователя root , группа пользователей. Но у других есть только r and Икс , not ш . This means Android Studio program hasn’t writing access for the folder android-studio`.
  4. Чтобы разрешить доступ для записи, вы ставите терминал sudo chmod o+w android-studio .

Теперь вы можете обновить Android Studio.

Я всегда скачиваю свою Android Studio вручную из:

Во время установки я выбираю существующий распакованный SDK вместо загрузки во время установки — это вызывает проблемы с плохо загруженными пакетами

Попробуйте в следующий раз.

Надеюсь, это поможет

Скорее всего, у вас есть проблемы с разрешениями.

Это быстрое, не очень хорошее решение. sudo chmod -R 777 [android studio folder] , Это даст всем разрешения для этой папки, это может не иметь большого значения для вашей домашней частной машины, но для рабочей / публичной, очевидно, вы этого не хотите.

Хорошим решением было бы установить правильные разрешения для папки и подпапок, где установлена ​​ваша Android-студия.

Источник

How to update Android Studio in Ubuntu?

I am trying to update from version 2.0.0 to version 2.1.2 in Ubuntu 64bit/14.04LTS but when I click «update and restart» it says «Downloading patches» and it closes.

It does not start again and if I try to open it, the version is still 2.0.0.

Is there any tutorial to manually update android studio? (keep all settings and etc).

7 Answers 7

The first time I installed Android Studio, I followed the instructions given at: https://www.linuxbabe.com/ubuntu/install-android-studio-ubuntu-16-04

With this you have a clean installation of android studio

Then, when I need to update it, I just rerun

If you didn’t use this method, it’s worth a try. It is cleaner in the long run.

I experienced the same issue when trying to update from 2.1.0 to 2.1.1 and the update problem still persisted after the Android Studio 2.1.2 release.

In the end the only option was a clean install of Android Studio.

To keep your existing Android Studio settings download and install the latest version into a different folder. When the new installation of Android Studio is run for the first time it will prompt you to import your settings from the older Android Studio version you have installed.

I had the same problem. I found that after the patch is downloaded Android Studio tries to update itself but as it is run without sudo rights it fallbacks to simply run the old version of Android Studio without updating it.

In order to update my old version of Android studio I went to the folder where Android studio was installed, in my case

/apps/android-studio/bin/, and run with sudo Android Studio, in my case sudo ./studio.sh

It will then ask you for your Android Studio configuration file. Be careful about the location where the installation process will install a new Android SDK version, because in my case it wanted to install it in the wrong directory, I had to select custom installation in order to select the folder where I had my previous Android SDK.

Источник

How do I update android studio 2.3.2 to 3.0 on ubuntu?

Actually I want to try the kotlin language which requires android studio 3.0, but I have 2.3.2. So how do I update the thing on Ubuntu?

3 Answers 3

Well I found out that many versions of Android Studio can be installed side by side which is better for me since I wan to have the old one also:

You can also upgrade android studio from older version to new version. Go to Help -> Check for Updates Then the update window will appear, Select Update and Restart button or Update Now if you are updating Plugins.

Usually, there is an issue with the upgradation i.e. When we click «update and restart» it says «Downloading patches» and it closes after or before downloading the entire patches. It does not start again and if we try to open it, the version is still the older one. I found that after the patch is downloaded Android Studio tries to update itself but as it is run without sudo rights it fallbacks to simply run the old version of Android Studio without updating it.

So to fix it go to the folder where Android studio was installed, usually, it is /usr/local/android-studio/bin and go to sudo mode using sudo -i and then run ./studio.sh or run sudo ./studio.sh (but it didn’t work for me) and try to download the patches again probably now it should get updated.

This will preserve the confriguration of your older version of Android Studio.

Источник

Android Studio update issue with jre/bin/java

While updating Android Studio I got the following error. The patch was downloaded and extracted, but there was some conflict with jre/bin/java Access denied . The error message is shown in the below screenshot.


(Click image to enlarge)

13 Answers 13

Kill java for update

output of this command will give the list of java processes running on your system. Note down Process ID (PID) of that process whom you want to kill and run

What I found worked for me is with Android Studio running (before initiating the update patch download) I did ps -ef|grep jre on the command line and saw there were 2 jre process running, the one for Android Studio and one of which was for the Gradle daemon which was also using the jre shipped inside Android Studio. The Gradle daemon process will have something like this: gradle-5.3.1/lib/gradle-launcher-5.3.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 5.3.1

towards the end of its command line when you list processes with ps though of course the specific version you have may not be 5.3.1.

Killing the Gradle process and then starting the update download and then restart from inside Android Studio let the update proceed successfully.

Источник

Читайте также:  Андроид для телевизора бишкек
Оцените статью