Skip to content

aludmila-gdev/android-environment-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Android Environment Setup

About

This repository is intended to share the way I like to configure my development environment to work with Android applications.

For this, I performed the steps on a computer with the Mac OS X system, however the available links will possibly have instructions to perform the steps on other platforms as well!

Summary

  1. Install Android Studio
  2. Install Java
  3. Install Homebrew
  4. Install iTerm2
  5. Install zsh
  6. Install oh-my-zsh
  7. Configure your .zshrc file
  8. Install NVM
  9. Configure GitHub credentials
  10. Clone a test project
  11. Open and run the test project
  12. References

Install Android Studio

  1. Download android studio
  2. Install android studio

Install Java

  1. Go to the Previous Java releases page and select the java versions you will need in your context. In my case, I'm going to download versions Java SE Development Kit 8u251 and Java SE Development Kit 11.0.2.

Install Homebrew

  1. Open the terminal
  2. Paste the following command and [ENTER]
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install iTerm2

  1. Open the terminal
  2. Paste the following command and [ENTER]
brew install iterm2

Install zsh

  1. Open the terminal
  2. Paste the following command and [ENTER]
brew install zsh

Install oh-my-zsh

  1. Open the terminal
  2. Paste the following command and [ENTER]
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Configure your .zshrc file

  1. Open the terminal
  2. Copy the commands below respectively and [ENTER] after each of them
cd
open .
  1. Now download this .zshrc file and copy it to the open folder.
  2. Fill in the following fields in the .zshrc file file with your github data
alias gitUserName="git config user.name \"Your Name\""
alias gitUserEmail="git config user.email \"@gmail.com\""

Install NVM

  1. Open the iterm
  2. Copy the commands below respectively and [ENTER] after each of them
brew update
 brew install nvm 
 mkdir $HOME/.nvm

Configure GitHub credentials

Now that your Iterm is configured, we can start using it instead of the standard terminal.

  1. Open the iterm
  2. Copy the commands below respectively and [ENTER] after each of them
 git config --global user.name "Your Name"
 git config --global user.email "your_email@example.com"
  1. Now you will need to follow the documentation available on github for Generating a new SSH key and adding it to the ssh-agent and Adding a new SSH key to your GitHub account.

Clone a test project

After setting up your ssh keys, you should be able to clone a test repository to build an Android project. To do this, run the following command in your iterm:

 git clone git@github.com:knludi/DiceRoller.git

If there is an error at this stage, you can search for an answer on Google, or contact me by sending the error message, and I can try to help you in some way!

Open and run the test project

Now that the initial configurations are done, let's test them by building a pre-existing project, which was downloaded from git in the previous step.

  1. Open Android Studio, and you should see a screen like this:
Tip time app running
  1. Open the project you downloaded earlier:
Tip time app running
  1. Create a virtual device following the guideline;

  2. Once you have a device created, use the play icon to build and view the app in the emulator:

Tip time app running
  1. Wait for the app to build, this may take a few minutes. At the end you should see a screen similar to this:
Tip time app running
  1. Congratulations!! you have a completely configured android environment, and now you can start building your apps!🥳

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages