Google Project Tango
- Go to https://developers.google.com/project-tango/apis/unity/
- Download Android SDK, Google USB Driver, and Project Tango Unity SDK. Be sure so carefully read the instruction on each page.
- Enable USB debugging on the device.
- Follow the steps in this tutorial to create a project.
(Note: The first time you build the project, you will be asked to locate the Android SDK root folder, which is usually at
Installing Android SDK
- Go to [[ http://developer.android.com/sdk/installing/index.html?pkg=tools]] to download and install the standalone Android SDK for windows
- Open the SDK Manager and install these essential packages: Android SDK Tools, Android SDK Platform-tools, Android SDK Build-tools, a version of Android platform API
- If you are developing on Windows, you may want to change the System Environment Variables to make build process easier:
- Have your android sdk platform tool location ready, for example, ...\Android\android-sdk\platform-tools
- Go to Computer -> System Properties (Or right click -> Properties) -> Advanced System Settings -> Advanced -> Environment Variables
- In System variables, go to the Path variable, double click the Value, and add the platform tool location to the end
- Now you can test if you can access the adb command by
- WIN+R -> cmd -> Enter ***OR*** Start -> Accessories -> Command and Prompt
- Type adb
- If you can see Android Debug Bridge messages, you are good to go!
Building Unity Project
- Make sure it’s built on platform Android, and the phone’s orientation is Landscape Left
- When building, it will prompt and ask you for the location of Android SDK: ...\Android\android-sdk
- Connect the device, and in command line, run adb install YOUR -.APK FILE
- If installation succeeds, the return value is Success. Otherwise. Failure [INSTALL_FAILED_ALREADY_EXISTS], you need use -r parameter to reinstall installed package. If return Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE], please check your android devices ROM or SD Card space