Skip to content

Installing the Dev Environment

Destin Estrela edited this page Feb 19, 2021 · 2 revisions

Step 1: Clone the ambigouslyandroid Repo

Using a git client, clone this link to access the Android project. You can clone using an ssh key so that you do not require a password every time you push or pull.

[email protected]:CPSECapstone/ambigouslyandroid.git

Step 2: Install Android Studio

Download the latest version of Android Studio using the link below.

https://developer.android.com/studio

Step 3: Open the existing project in the repo

Be sure to select the green android project icon so that the IDE configures the project correctly.

Select OK, then wait for gradle to finish syncing and indexing.

Step 4: Install Necessary SDKs

Navigate to Tools -> SDK Manager

Select Android 7.1.1 (Nougat)

Navigate To SDK Tools and check Android Emulator, Chrome OS Device, Google Play Services, Android SDK Build Tools and Android SDK Platform Tools

Select Save

Step 4: Fix the emulator for ChromeOS

Due to a bug with the emulator and ChromeOS, you need to download the emulator from one of these links.

Windows https://dl.google.com/android/repository/emulator-windows-6031357.zip

Linux https://dl.google.com/android/repository/emulator-linux-6031357.zip

MacOS https://dl.google.com/android/repository/emulator-darwin-6031357.zip

Open the android SDK folder based on the path that's provided in the SDK manager. Replace "emulator" with the emulator folder you downloaded above.

Step 5: Configure Emulator

Navigate to Tools -> AVD Manager

Select create virtual device

Select Pixelbook and click next.

Select Nougat and click next.

Select Finish

Step 6: Configure Virtual Chrome Device

Select the play button in the AVD (Android Virtual Device Manager)

Wait for emulator to load, and select "Enable debugging features"

It will fail. This is ok.

Select blue "Lets go", then "next" for network access, then accept the chrome os terms. After, sign in with your google account. Select Accept and continue. Finally, when google play apps and services appears, select the blue "More" button, then the blue "I Agree" button. Skip the google assistant setup. You should see your ChromeOS desktop.

Step 7: Build and run current application

Select the green play button in the top middle section of Android Studio.

After some time, the virtual ChromeOS device should launch the app.