Running meteor app as android app

842 Views Asked by At

I am new to meteor(even to Linux) and have zero experience in web app development. I am trying to run the sample meteor app as an android application, following the tutorial here. I am done with running it as a web app.To run it in android,as per the instructions in the documentation, i have added the command:

meteor install-sdk android

but it says to follow the instructions here. That link says to download android studio and configure(download SDK platform 22). I am already having android studio with SDK platform 22. The next step is "Set ANDROID_HOME and add the tools directories to your PATH". I cant get what it says. I am totally confused and stuck here. Any help is appreciated.

1

There are 1 best solutions below

6
Bhargav On

What setting ANDROID_HOME means is that you need to set the environment variable ANDROID_HOME how you do this is by first finding out where your android sdk is installed. Then follow these steps

On MacOS/Linux, define the path to wherever you installed your SDK as ANDROID_HOME:

MacOS

$ export ANDROID_HOME=/Applications/android-sdk-macosx

If you installed Android Studio, the value will need to be

export ANDROID_HOME=$HOME/Library/Android/sdk

Linux

$ export ANDROID_HOME=~/android-sdk-linux

For example in my linux mint intallation, I have android sdk in my /home/myusername/Android/Sdk then I would define ANDROID_HOME as -

export ANDROID_HOME=/home/myUsername/Android/Sdk

remember these commands have to be typed on a terminal

Then add the paths to the platform-tools and tools sub-directories (Same on MacOS/Linux).

export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/platform-tools:$PATH

P.S: If you want to find out where the android sdk is installed, since you mention that you have android studio already installed and set up all you have to do to find out where android sdk is installed is

  • Open your android studio

  • Find the tools menu at the top - hover over android - and click on SDK manager. The manager has a textbox saying Android sdk location: with the path to the location for android sdk