Create Android Studio Project / Workspace on external, network mounted drive under Ubuntu 18.04

Use external, network connected drives for Android Studio projects.

It’s really simple:

1. create mount point under /mnt

2. mount external drive

3. if you want to mount external drive while Android Studio starts, use „fstab“. Open /etc/fstab file and edit:

add line:

reload fstab settings:

open studio.sh file under Android Studio/bin and add this code in the head:

if you get mount errors like „Mount error(22)… Invalid Argument…“, install cifs-utils:

4. start Android Studio, click „Open an existing Android Studio project“ (if the project already exists on external drive) and select an project under /mnt/studio, or start new project under /mnt/studio

Done!