Vuforia Engine can leverage Google's ARCore on devices that support it. Take advantage of ARCore for Ground Plane and Device Tracking (including Extended Tracking) features by enabling ARCore in your project.
Using ARCore on devices where it is supported is encouraged. Consider also if your AR app should have ARCore as a requirement or optional depending on the set of devices that you wish to target.
Add Android Dependency
Prerequisites
For the latest supported Android Studio, SDK Build Tools, Gradle, and NDK, please refer to Supported Versions. For more information on enabling ARCore, please refer to the Android Developer Portal.
Enabling ARCore
- Open
AndroidManifest.xml
and add the following within the<application>
element:12
Copy<!-- The following must be present to facilitate use of ARCore, if available --> <meta-data android:name="com.google.ar.core" android:value="optional" />
- Edit
(root) build.gradle
and ensure that each of therepositories
elements includes an entry forgoogle()
:1234
Copyrepositories { jcenter() google() }
- Also in
(root) build.gradle
, ensure that thedependencies
element references the latest supported Gradle tools:1
Copyclasspath 'com.android.tools.build:gradle:4.1.0
- Edit
app/build.gradle
and confirm that thedependencies
element references the ARCore client library:123
Copydependencies { implementation 'com.google.ar:core:1.31.0' }