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!
- Install Android Studio
- Install Java
- Install Homebrew
- Install iTerm2
- Install zsh
- Install oh-my-zsh
- Configure your .zshrc file
- Install NVM
- Configure GitHub credentials
- Clone a test project
- Open and run the test project
- References
- Download android studio
- Install android studio
- 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.
- Open the terminal
- Paste the following command and [ENTER]
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Open the terminal
- Paste the following command and [ENTER]
brew install iterm2
- Open the terminal
- Paste the following command and [ENTER]
brew install zsh
- Open the terminal
- Paste the following command and [ENTER]
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Open the terminal
- Copy the commands below respectively and [ENTER] after each of them
cd
open .
- Now download this .zshrc file and copy it to the open folder.
- 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\""
- Open the iterm
- Copy the commands below respectively and [ENTER] after each of them
brew update
brew install nvm
mkdir $HOME/.nvm
Now that your Iterm is configured, we can start using it instead of the standard terminal.
- Open the iterm
- 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"
- 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.
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!
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.
- Open Android Studio, and you should see a screen like this:
- Open the project you downloaded earlier:
-
Create a virtual device following the guideline;
-
Once you have a device created, use the play icon to build and view the app in the emulator:
- Wait for the app to build, this may take a few minutes. At the end you should see a screen similar to this:
- Congratulations!! you have a completely configured android environment, and now you can start building your apps!🥳