This guide introduces the Android Studio IDE and reviews some basic features.
Here are some possible solutions if Android Studio reports a Gradle sync or configuration error:
Android Studio displays project files in the Android view by default. We recommend changing it to the Project view, which provides a good overview of the entire directory structure and highlights imported project directories in bold.
You can build and run your application on your device directly from Android Studio. This will compile your project, build the APK, copy it to the phone over USB orWi-Fi, and prepare it for launching.
If you are developing for Gear VR and your phone is set to Developer Mode, your application can launch without being inserted into your Gear VR headset. Otherwise, when the process completes you will be prompted to insert your mobile device into the headset to launch the application.
Make sure you have followed the configuration steps in the Mobile SDK Setup Guide to ensure your device is configured appropriately.
Select the target configuration you wish to build before building by selecting Edit Configurations in the project menu in the Android Studio toolbar.
To build and run your app:
Click Run in the toolbar.
Select a device listed under Connected Device instead.
Troubleshooting: If USB debugging does not seem to be working:
Troubleshooting: If stepping into certain functions results in an illegal instruction exception (SIGILL) / crash while debugging:
If you edit a *.gradle file or install an update to the Oculus Mobile SDK which includes updated Gradle projects, click Sync Project with Gradle Files to update your Android Studio project files.