Download and import the sample project

Launch Android Studio and import one of the sample projects: PolySampleAndroid or PolySampleARCore.

The sample projects have build dependencies on certain versions of software, such as Gradle and the Android SDK. If the required dependencies are not installed, Android Studio will ask you for permission to download and install them on your machine.

Run the sample

Make sure your Android device is connected to the development machine or that you have created a virtual device. Then, click Run in Android Studio, choose your device or emulator as the deployment target, and click OK.

Android Studio will build your project into a debuggable APK, install the APK, and then run the app on your device. You should see the model of a piano appear on your screen in a few seconds. If this does not happen, check the logs in Android Studio (or through the adb logcat command) to see if there were any errors. For more information, see Build and Run Your App.