Follow the instructions found here to install the latest version of the Android SDK
Developing for the Forge
requires a small set of packages to be installed. In the Android SDK Manager, install the latest revisions of the following packages:
- Tools
- Android SDK Tools
- Android SDK Platform-tools
- Android SDK Build-tools
- Android 4.1.2 (API 16)
- SDK Platform
To use adb or other Android tools from the command line, you'll need to add the build and platform tools folders to your system's PATH environment variable. After setting the PATH, you may need to close your terminal window or log out for the changes to take effect.
- Create or edit the shell startup file
~/.bash_profile
- Add the following line:
PATH=$PATH:<SDK>/platform-tools:<SDK>/tools
replacing each<SDK>
with the path to your Android SDK folder - Save and close the file
- Open Advanced System Settings, usually found by Right click My Computer > Properties
- In the Advanced tab, click the Environment Variables button
- Under System Variables, select PATH and click the Edit button
- Add the following text to the end of the value field:
;<SDK>\platform-tools;<SDK>\tools
replacing each<SDK>
with the path to your Android SDK folder - Click OK
For ADB to be able to connect with the console, you'll need to modify some system and Android SDK files.
- Create or edit the file
~/.android/adb_usb.ini
- Add the following line:
For Forge TV
0x1532
For OUYA
0x2836
- Save and close the file
- Create or edit the file
%USERPROFILE%\.android\adb_usb.ini
(%USERPROFILE%
is typically a folder such asC:\Users\MyName\
) - Add the following line:
For Forge TV
0x1532
For OUYA
0x2836
- Save and close the file
- With your Android Device connected via USB cable, open the Device Manager (Right click My Computer > Properties > Device Manager)
- In Device Manager, select Portable Devices > UNKNOWN Console
- Right-click and choose Update Driver Software...
- Choose Browse my computer for driver software
- Choose Let me pick from a list of device drivers on my computer
- Select All devices and click Next
- Click Have Disk and browse to
<SDK>\extras\google\usb_driver
- Choose ADB Composite Device
- Accept the driver