I have an external hard drive plugged into the laptop with ample space on it. I want to install android studio on it. I opened my file explorer, and went into the drive, right-clicked and opened in terminal. Now i'm in the drive in the terminal, or so I thought. I ran the command sudo pacman -S android-studio while being in this directory, and it installed it on my laptop instead so how do I install android studio to my external? I'm on Garuda Gnome Arch Linux. Thanks
#[solved] how to install a program onto an external harddrive?
56 messages · Page 1 of 1 (latest)
I figured I would try and just clone the repo and use the makepkg -si command, but then I ran into this issue
mekasu@FireDragonMek /r/m/m/M/Programs> cd android-studio/
mekasu@FireDragonMek /r/m/m/M/P/android-studio (master)> makepkg -si
==> Making package: android-studio 2021.3.1.17-1 (Sat 07 Jan 2023 02:38:40 AM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading android-studio-2021.3.1.17-linux.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 937M 100 937M 0 0 7465k 0 0:02:08 0:02:08 --:--:-- 7914k
-> Found android-studio.desktop
-> Found license.html
==> Validating source files with sha256sums...
android-studio-2021.3.1.17-linux.tar.gz ... Passed
android-studio.desktop ... Passed
license.html ... Passed
==> Extracting sources...
ln: failed to create symbolic link '/run/media/mekasu/MEKS EXTERN/Programs/android-studio/src/android-studio-2021.3.1.17-linux.tar.gz': Operation not permitted
ln: failed to create symbolic link '/run/media/mekasu/MEKS EXTERN/Programs/android-studio/src/android-studio.desktop': Operation not permitted
ln: failed to create symbolic link '/run/media/mekasu/MEKS EXTERN/Programs/android-studio/src/license.html': Operation not permitted
==> Entering fakeroot environment...
==> Starting package()...
/run/media/mekasu/MEKS EXTERN/Programs/android-studio/PKGBUILD: line 37: cd: too many arguments
==> ERROR: A failure occurred in package().
Aborting...
mekasu@FireDragonMek /r/m/m/M/P/android-studio (master) [4]>
Not recommended.
https://unix.stackexchange.com/questions/319194/arch-linux-install-package-to-external-media
ok then I'll use my windows os to do it. thanks
appimage would be best.
the only reason I'm wanting to do it is because my computer houses 2 os's and I'm low on space with my programmin projects on one and games on the other. I would just download android studio and use the android emulator from there, but I don't have enough space and it won't let the emulated device launch. I just tried to install android-emulator using sudo pacman -S android-emulator but it's not showing up in my app window, nor in terminal when I type android-emulator
I decided to remove the other os, and just go with linux as my main. I've got it running now. My next question is how do I add android to path in my .back_profile? I forgot and I can't find the help thread I had a couple of months ago on it
lmao back profile
you can probably just PATH+=:/what/ev/er
Failed to resolve the Android SDK path. Default install location not found: /home/mekasu/Android/sdk. Use ANDROID_HOME to set the Android SDK location.
that's the error I get when trying to launch android from terminal using expo. I have to add android home and the path or whatever to my .bash_profile but I don't remember how to do it
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools```found it
just add that to the bash profile
you can prolly just use += instead of =$path
Why are you installing it to your home directory?
idk. that's just where it downloads
🤷
where am I supposed to download it?
I did use pacman.
....
so how do I set the path in the bash profile
I've gotten the answer before, but it's been a minute since that thread and I can't find it
add it to your .bashrc
how
christ the archwiki has everything
i doubt {} does anything there though
well, it might
if I just googled everything, then what's the point of having a support discord with support channels
#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
```I did this, logged out and back in and it still won't work.
If you try building the package in your home directory does it work?
what do you mean? I didn't build anything since I used pacman?
what?
are you talking about cd'ing into android studio and running makepkg -si?
you cloned the repo onto your external drive last time when it failed, but does building it on your main drive work?
nope. never did that. Ended up fucking up my os, so I reinstalled and am only running linux now which gave me plenty of space for android studio so I didn't need the external anymore. Now my only problem is that when I run npm start inside of my react-native project, it gives the option of opening on android a and when I press that, it gives me the error which I replied to. Honestly, it doesn't really matter because I can run a virtual device on my computer next to my ide. I just don't like errors when I want to try something
so I'm trying to simply add ANDROID_HOME to my path in my bash profile. I've done it before, I just can't find the support thread where I got help with it. It was a very simple solution similiar to what I tried here, but I can't remember it exactly
try doing it like this
A=abc
D=123
export A D
what?
I'm telling you it's what I've already written, just might have a thing or two wrong.
ok
this is the thread I was talking about, This deals with uvicorn, but it's the same thing, just doing it for android home instead of uvicorn. I just don't remember how write it correctly
#1044425038574669915
it doesn't really matter. I can use the virtual device inside of android studio and I can use an external device as well. I can be happy with those. thank you for your help