Installing the latest version of Android Studio – AndroidStudioPreview3.2

I am installing in /home/anne

Android Studio

INSTALLATION INSTRUCTIONS
===============================================================================

Linux Installation Instructions
——————————————————————————
1. Unpack the Android Studio distribution archive that you downloaded to
where you wish to install the program. We will refer to this destination
location as your {installation home} below.

2. Open a console and cd into “{installation home}/bin” and type:

./studio.sh

to start the application. As a side effect, this will initialize various
configuration files in the ~/.AndroidStudioPreview3.2 directory.

3. [OPTIONAL] Add “{installation home}/bin” to your PATH environment
variable so that you may start Android Studio from any directory.

4. [OPTIONAL] To adjust the value of the JVM heap size, create
~/.AndroidStudioPreview3.2/studio.vmoptions (or studio64.vmoptions
if using a 64-bit JDK), and set the -Xms and -Xmx parameters. To see how
to do this, you can reference the vmoptions file under
“{installation home}/bin” as a model.

[OPTIONAL] Changing the location of “config” and “system” directories
——————————————————————————
By default, Android Studio stores all your settings under the ~/.AndroidStudioPreview3.2/config
directory and uses ~/.AndroidStudioPreview3.2/system as a data cache.
If you want to change these settings,

1. Open a console and cd into ~/.AndroidStudioPreview3.2/config

2. Create the file “idea.properties” and open it in an editor. Set the
idea.system.path and/or idea.config.path variables as desired, for
example:

idea.system.path=~/custom/system
idea.config.path=~/custom/config

3. Note that we recommend to store data cache (“system” directory) on a disk
with at least 1GB of free space.

Enjoy!

-Android Studio Development Team

Android Virtual Device does not start on Android Studio 3.2 Canary 3 on a Dell Optiplex 7010 Desktop computer running Ubuntu Linux 17.10

After installing the Preview version of Android Studio (AS 2.2 Canary 3) on the Dell Optiplex desktop running Ubuntu Linux 17.10 according to this page:

https://developer.android.com/studio/preview/install-preview.html

I started up Android Studio using this command:

$ /home/anne/android-studio-preview-32-Canary2/bin/studio.sh

Android Studio started up OK but when I tried to run a “Hello World!” app I had the same problem that I had on my Dell Inspiron 15R laptop running Ubuntu Linux 17.10 – the emulator would not start.

As per my previous post I fixed this problem using this method:

$ cd ~/Android/Sdk/emulator/lib64/libstdc++ 
$ mv libstdc++.so.6 libstdc++.so.6.bak 
$ ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6

The emulator started normally. But it stopped again later so I reissued the three commands above and it fixed it again.

A word of warning though: a later SDK update would not work because of the detection of libstdc++.so.6.bak – but it seemed to complete the update by an alternate method, so I left all alone.

 

Android Studio 3.2 Canary 2 (build 7th February 2018) HINT SHEET

This is a work in progress. Keep coming back to see the latest additions!

Double press the Shift key to search everywhere in the Android Studio environment. This can be very useful if, for example, you are trying to locate a particular IDE action that you have forgotten how to trigger.