Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

Getting Started

erikaaatan edited this page Dec 16, 2017 · 1 revision

Getting Started

  1. How to Set Up the Project
  2. How to Run PowerUp on an Emulator

How to Set Up the Project

  1. Download Android Studio here. If you are using Android Studio 3.0 use these resources (https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html / https://developer.android.com/studio/releases/gradle-plugin.html).
  2. Click on “Fork” in the top right corner of the PowerUp repository so that you have your own copy. Fork
  3. Remember to use the code from the GSoC17 branch when you are running the app on an emulator or trying to contribute. Now, clone the repo to your desktop by typing git clone https://github.com/YOUR_USERNAME/powerup-android.git in your command line.
  4. Initialize git. git init
  5. In Android Studio, press “open an existing Android Studio project” and migrate to where you downloaded PowerUp. Open the “PowerUp” folder. You may now start contributing to the project! Android Studio PowerUp Folder

For more instructions, see the README.

How to Run PowerUp on an Emulator

  1. Click the “Run” button near the top left of Android Studio. Run
  2. The “Select Deployment Target” Dialog appears. deployment
  3. If you receive an error or warning message at the top of the dialog, click the link to correct the problem or get more information.
  4. The “No USB devices or running emulators detected” warning means that you don’t currently have any emulators running, or any detected hardware devices connected to your computer. If you don’t have hardware devices connected to your computer, or any emulators running, you can ignore the message.
  5. Some errors you must fix before you can continue, such as certain Hardware Accelerated Execution Manager (Intel® HAXM) errors.
  6. For Mac, if you see a “Warning: No DNS servers found” error when starting the emulator, check to see whether you have an /etc/resolv.conf file. If not, enter the following command in a terminal window: ln -s /private/var/run/resolv.conf /etc/resolv.conf
  7. In the “Select Deployment Target” dialog, select an existing emulator definition, and then click OK.
  8. If you don’t see a definition you want to use, click “Create New Virtual Device” to launch the AVD Manager. After you define a new AVD, in the “Select Deployment Target dialog”, click OK. Create New Virtual Device Configuration
  9. If you want to use this emulator definition as the default for your project, select “Use same selection for future launches”.