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
(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.
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.
On the "SDK Tools" tab, choose these options, and then click "OK".
Confirm the changes:
Now add simulator hardware by clicking on the "AVD Manager":