在此專頁上
This guide introduces the Android Studio IDE and reviews some basic features, including how to build and run sample projects.
Before using this guide, follow all of the instructions in Device Setup - Oculus Go and Android Development Software Setup. The native samples referenced in this topic can be found at \ovr_sdk_mobile\VrSamples in the Mobile SDK.

build.gradle project file from the Mobile SDK VrSamples folders. For example, VrSamples/VrCubeworld_Framework/Projects/Android/build.gradle. 

Here are some possible solutions if Android Studio reports a Gradle sync or configuration error:
local.properties file from your project folder up to the root of your Oculus Mobile SDK folder.
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 or Wi-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 Device Setup - Oculus Go and Android Development Software Setup to ensure your device and development environment are configured appropriately.
Before building, select the target configuration you wish to build 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:
process handle --pass true --stop false --notify true SIGILLIf 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.
