Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Latest commit

 

History

History
65 lines (36 loc) · 3.09 KB

ENVIRONMENT_ANDROID.md

File metadata and controls

65 lines (36 loc) · 3.09 KB

Preparing the Environment on Your Machine

Go back to Readme Home

Installation for Android Development

NOTE: Android Studio can take a significant amount of hard drive space. The amount ranges but it appears to be common for the SDK and Studio to take up 20-30gb. On top of this, running the emulator can also consume a great deal of hard drive and memory resources. It appears that one should try to have 40gb free drive space in order to successfully install and emulate a project. This post has some advice on how to mitigate the problem but would require emulation through a connected Android mobile device.

Go to Facebook React Native Getting Started and click on the "Android" button. Steps described include:

  • Downloading the latest Java SE Development Kit
  • Install Android Studio

There is lots of info on our wiki at Android Cheat Sheet

Start the npm install process

(WebAppEnv) $ cd /Users/<YOUR NAME HERE>/MyProjects/WeVoteReactNative/ios

This will take several minutes:

(WebAppEnv) $ npm install

(WebAppEnv) $ npm start

In Android Studio, open WeVoteReactNative/android

If you get any errors regarding missing files, click to add those.

alt text

In Android Studio, go to "Android Studio" menu. Choose "Preferences", and then open "System Settings". Choose these options, and then click the "SDK Tools" tab.

alt text

On the "SDK Tools" tab, choose these options, and then click "OK".

alt text

Confirm the changes:

alt text

Now add simulator hardware by clicking on the "AVD Manager":

alt text

alt text

alt text

alt text

alt text


Next: Running WeVoteReactNative Android for the First Time

Go back to Readme Home