This repository was archived by the owner on Oct 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Setup
Robert Ford edited this page Mar 22, 2017
·
16 revisions
- Setup Android Studio SDK
- Install Oracle VirtualBox and Genymotion
- Starting Genymotion
- Install Genymotion Plugin for Android Studio
- Install Git
- Setup Firebase
- Create Project in Android Studio
- Register local git repository with project
- Problems and Gotchas
- Go to https://developer.android.com/studio/index.html
- Click Download Android Studio
- Install the downloaded .exe
- From the Welcome to Android Studio Setup screen, select Next.
- From Choose Components screen, deselect Android Virtual Device and select and then Next.
- Optionally, from Choose Components screen, leave default selection (Android SDK and Android Virtual Device) and select Next.
- From the License Agreement screen, select I Agree.
- From the Configuration Settings screen, select the desired location for the Android Studio Installation and Android SDK Installation.
- From the Choose Start Menu Folder, select the desired location.
- Click Next when finished.
- From Completing Android Studio Setup, click Finish.
- Download VirtualBox 5.1.14 from http://download.virtualbox.org/virtualbox/5.1.14/VirtualBox-5.1.14-112924-Win.exe
- Install the downloaded .exe.
- Note - when installing VirtualBox, in the Custom setup window, make sure VirtualBox Networking is enabled.
- From the Welcome to the Oracle VM VirtualBox 5.1.14 Setup Wizard, select Next.
- From the Custom Setup screen, select Next.
- Choose desired shortcuts, and select Next.
- If presented with the Warning: Network Interfaces screen, select Yes.
- From the Ready to Install screen, select Install.
- If presented with the Windows Security - Would you like to install this device driver dialog, select Install.
- From the Installation Complete screen, select Finish.
- Optionally, unselect Start Oracle VM VirtualBox 5.1.14 after installation.
- From https://www.genymotion.com/download/ download the version without VirtualBox
- Run the exe
- From the Select Setup Language, select English and click OK
- From the Select Destination Location, select Next
- From the Select Start Menu Folder, select Next
- From the Select Additional Tasks screen, select Next
- Optionally, deselect Create a desktop shortcut
- From the Ready to Install screen, select Install
- From the Completing the Genymotion Setup Wizard screen, select Finish
- From the Usage notice dialog, click Accept
- From the Add a first virtual device screen, click Yes.
- From the Select a new virtual device screen, click Sign in
- Sign in
- Select an appropriate device (Samung Galaxy S6 - 6.0.0 - API 23 - 1440x2560)
- From the Virtual device name, click Next to accept the default name.
- Wait for the device files to download, and then click Finish
- Go to File > Settings (in Android Studio)
- Select Plugins and click Browse repositories.
- Right-click on Genymotion and select Download and install.
- From the Download and Install dialog, click Yes.
- Restart Android Studio
-
Click the Genymotion Device Manager button . - Browse to the Genymotion install directory and click OK.
- Click the Genymotion Device Manager button again.
- Download 32 or 64 bit installer from https://git-scm.com/download/win
- Launch exe
- From Configuring the line ending conversions, select Checkout as-is, commit Unix-style line endings and click Next
- Accept all other default options and complete installation
- From Windows Start menu, select Git > Git Bash
- Enter git config --global "Your Name"
- Set user email:
- Enter
git config --global user.name "email-address@example.com" - From app directory (contains .git directory) enter
git config --local user.email "email-address@example.com"
- Enter
- Select Tools > Android > SDK Manager
- From the SDK Tools tab, select Google Play services.
- If there is an update available for Google Repository (denoted by a minus in the box), select it.
- Click OK
- Launch Firebase assistant by selecting Tools > Firebase
- https://gist.github.com/wbroek/9321145
- Drag the Genymotion-ARM-Translation_v1.1.zip file to the emulator
- Select OK on the File installation warning dialog
- Launch a console and change to Android SDK directory ex. \Users<username>\AppData\Local\Android\sdk\platform-tools. Can be found from Android SDK Location in Default settings > Appearance & Behavior > System Settings > Android SDK.
- Issue
adb rebootcommand - Drag the appropriate gapps to the emulator and select OK from the File installation warning dialog.
- Issue
adb rebootcommand again - If presented with a an error about the Google Play store having a problem, select OK.
- From Genymotion, launch the Play Store
- Sign into the Play Store
- Update Google apps, click the hamburger icon to open the navigation drawer, and select My Apps, then click Update in the Google apps.
- Search for Netflix and Google drive to verify installation successful.
For Android M (Marshmallow) devices, see https://z3ntu.github.io/2015/12/10/play-services-with-genymotion.html
Note: this section assumes that Git is installed as described above
- Clone the Git project using either the Git GUI or Git bash
- Git GUI:
- Launch a Git GUI
- Select Clone Existing Repository
- Enter https://github.com/rford1223/MealBuddy in Source Location.
- Enter the directory where the repository will be stored locally.
- Click the Clone button.
- Git bash:
- Launch a Git bash session
- Change directory to the parent directory where the repository will be stored locally.
- Clone the repository into a new directory <local_dir> with the following command:
git clone https://github.com/rford1223/MealBuddy <local_dir>
- Git GUI:
- Launch Android Studio
- If an existing project opens, select File > Close Project
- Should see a screen similar to following:
- Select Open an existing Android Studio project.
- Navigate to the local clone of the repository, and select the MealBuddy directory beneath there and click the OK button.
- Select File > Settings > Version Control
- Select the project root directory in the Unregistered roots and click the green plus button.
- Click OK to close the Settings dialog.
When installing the debug APK to a Genymotion device, Android Studio issues a INSTALL_FAILED_VERIFICATION_FAILURE error.
- Launch the Genymotion device
- Run the adb shell command, usually found in \Users<username>\AppData\Local\Android\sdk\platform-tools
- From the adb shell enter,
settings put global verifier_verify_adb_installs 0
Team Members
- Stephanie M.
- Tim R.
- Robert F.