Using ARCore with Vuforia

Begining with Vuforia Engine 7.2, Vuforia Engine can leverage Google's ARCore on devices that support it. Vuforia Engine can take advantage of ARCore for Ground Plane and Device Tracking (including Extended Tracking) features.

To take advantage of ARCore from within Vuforia, there are some additional steps that developers need to go through which are outlined below. If the Android device does not support ARCore or the application is not configured properly, then Vuforia Engine will use its own plane-finding technology.

Unity

  1. Download the library from:
    https://dl.google.com/dl/android/maven2/com/google/ar/core/<ARCORE_VERSION>/core-<ARCORE_VERSION>.aar
    eg. https://dl.google.com/dl/android/maven2/com/google/ar/core/1.3.0/core-1.3.0.aar
  2. Place this aar file into your Unity project, under Assets/Plugins/Android/.
    If this folder does not exist, create it.
Vuforia Image
  1. Once the file is visible in Unity, select the file. In the Inspector window, review the plugin Import Settings. Confirm that "Android" is checked under "Select platforms for plugin"
Vuforia Image

Native Android

Prerequisites

Note that ARCore support requires Android build Tools 26.0.2; these instructions have been tested against Android Studio 3.0.1 and Gradle 4.6.

Enabling ARCore

  1. Edit AndroidManifest.xml and add the following within the <application> element:
    <!-- 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():
    repositories { 
        jcenter() 
        google() 
    }
    
  3. Also in (root) build.gradle, ensure that the dependencies element references the 3.0.1 gradle tools:
    classpath 'com.android.tools.build:gradle:3.0.1
    
  4. Edit app/build.gradle and confirm that the dependencies element references the ARCore client library:
    dependencies {
        implementation 'com.google.ar:core:1.3.0' 
    }