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

  1. 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" />
  2. Edit (root) build.gradle and ensure that each of the repositories elements includes an entry for google():
    1234
    Copy
    repositories { jcenter() google() }
  3. Also in (root) build.gradle, ensure that the dependencies element references the latest supported Gradle tools:
    1
    Copy
    classpath 'com.android.tools.build:gradle:4.1.0
  4. Edit app/build.gradle and confirm that the dependencies element references the ARCore client library:
    123
    Copy
    dependencies { implementation 'com.google.ar:core:1.31.0' }

Can this page be better?
Share your feedback via our issue tracker