Getting Started with Android StudioNote: ARCore is currently in preview. There might be breaking changes before the 1.0 release.Set up your development environment
Install Android Studio version 2.3 or higher with Android SDK Platform version 7.0 (API level 24) or higher.
Connect your Android device to the development machine with a USB cable
Install the service by running the following adb command:
adb install -r -d arcore-preview.apk
Open the sample project
In Android Studio, open the HelloAR sample project in <ARCore SDK Folder>/samples/java_arcore_hello_ar.
The sample project has 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 and click Run in Android Studio. Then, choose your device as the deployment target and click OK.
Android Studio builds your project into a debuggable APK, installs the APK, and then runs the app on your device. For more information, see Build and Run Your App.
As you MOVe your device, the app automatically detects flat surfaces and draws a diamond grid. Tap the grid to place an Android robot on the surface.
After that, you can integrate the ARCore AAR Library into your existing project by adding it as a dependency. Your app's minSDKVersion must be 19 or higher.