Can't update android studio on Ubuntu - android-studio

I am trying to update my studio from version 2.2.3 to 2.3 in Ubuntu 16.04 LTS. I am very new to Ubuntu and I can't seem to figure out as why is studio not updating. When I click update and restart it downloads the patches and closes and doesn't restarts. When I open it manually then it still is on the version 2.2.3 and again prompts to download and install latest version.

I am having a similar problem while updating from 2.3.2 to 2.3.3.
Go to the bin folder of your Android Studio installation folder: e.g. cd opt/android-studio/bin
Provide run permission for studio.sh file: chmod +x studio.sh
Run Android Studio from here: ./studio.sh
and try "update and restart" from android studio.

Related

How to install flutter on Linux Mint

I'm new to linux mint and I don't know how to install flutter.
"https://docs.flutter.dev/get-started/install/linux"
I couldn't understand the things in the link here, I would appreciate it if you could help.
Let me explain in simple steps :
first install "snapd" in your linux machine using command
Steps to install snapd-
sudo mv /etc/apt/preferences.d/nosnap.pref ~/Documents/nosnap.backup
sudo apt update
sudo apt install snapd
Now,Install flutter using snap-
1- sudo snap install flutter --classic
flutter will get installed after this (stablle internet connection needed)
To verify your flutter, run following command
flutter doctor
Note: You will need to install Android studio to run flutter on android emulator.
Hope it will work!!
#Install Flutter manually
Download the following installation bundle to get the latest stable release of the Flutter SDK From :
enter link description here
Extract the File > Move to the desire location .
then , Just Update The Path Parmanently .Shown in the Snaps Bellow :

Android Studio SDK not installed by default on Mac

Newish to Mac and having installed Android Studio it doesn't seem to have installed the Android SDK.
Any search for installing Android SDK seems to just refer me to install Android Studio again which I've tried with no success.
Install via brew which will install to /usr/local/opt/android-sdk
GoTo: Android Studio > Configure > SDK Manager.
Then update the location of the SDK within Android Studio as shown below.

Gradle version issue (Unsupported major.minor version 52.0) on Ubuntu 16.04 with Android studio 2.2.2

Hello to all who are interesting in the issue,
I feel confused about gradle version in Android studio.
I am using the Android Studio 2.2.2. In the project build.gradle. I have classpath 'com.android.tools.build:gradle:2.2.2 which makes me believing the Android studio is using gradle 2.2.2.
In the gradle-wrapper.properties, It has https\://services.gradle.org/distributions/gradle-2.14.1-all.zip. So it means the gradlew build scripts requires 2.14.
When I tried to list tasks in the project, I used the terminal gradle tasks, I had following error:
java.lang.UnsupportedClassVersionError: com/android/build/gradle/LibraryPlugin : Unsupported major.minor version 52.0
And when I run gradlew -v I found the gradle version is 2.10. It could be me, I manually install the gradle by using apt-get install gradle. The default version might be 2.10.
My question is, which version gradle the android studio is using and how can I update the gradle to 'correct' version so I could list the tasks in the android project?
Edit 1:
I tried to update gradle to 2.14. By using
sudo apt-cache search gradle
sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get update
sudo apt-get install gradle-2.14
I also tried to upgrade the gradle to version 2.14.1, but still having the same error.
Thanks for your help
Rong
A solution of solving the version 52.0 issue One suggested solution (with the similar situation I am having) solved the problem by decrease the gradle version to 2.10, I really do not want to do that, since I wish to use the update-to-date version that android studio is using.
As to the solution solved that issue: I am already having the Android 6.0 API 23 installed in the Android studio. The Android SDK 6.0 does not fix the problem in my case.
environment:
Android studio 2.2.2
Java sdk: 1.7
OS: Ubuntu 16.04 LTS
Got it work Thanks.
I installed both java 1.7 and 1.8 and I was using 1.7 in the terminal by using sudo update-alternatives --config javac. By some reason, I believe the android uses java 1.8. I changed update-alternatives option to java 1.8. The command 'gradlew tasks' starting to work as expected.
yes, but update $JAVA_HOME$ also accordingly.

Android Studio UI error after ./studio.sh

After ./studio.sh in terminal I get this window and can't follow setup wizard
Broken UI
I also try to install via AUR package but still got that error
My OS is Arch Linux 64bit and I'm using KDE
I solved that by install and use openjdk 8 instead of openjdk 7

Getting Genymotion to run with homebrew/cask installed VirtualBox

I tried to get Genymotion running through Android Studio with VirtualBox installed through homebrew Cask. When trying to launch Genymotion through Android Studio using the Genymotion Device Manager button in the toolbar, I get the error Genymotion: Initialize Engine: failed in the event log, which seems to be the error related to when VirtualBox isn't installed.
Running Genymotion on its own outside of Android Studio works perfectly fine.
I was able to fix this by uninstalling VirtualBox from Cask and reinstalling with the .dmg provided by VirtualBox themselves. That's fine for me right now, but I am wondering how one would get a Cask-installed VirtualBox linked up to Android Studio.
Make sure you have installed Homebrew.
brew cask install virtualbox
brew cask install genymotion

Resources