Using ARCore with Vuforia Engine for Native¶
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: -
Edit
(root) build.gradle
and ensure that each of therepositories
elements includes an entry forgoogle()
: -
Also in
(root) build.gradle
, ensure that thedependencies
element references the latest supported Gradle tools: -
Edit
app/build.gradle
and confirm that thedependencies
element references the ARCore client library. Here, you may also set ARCore to a specific version. The version must be the minimum supported or later that Vuforia Engine supports: