Log in or register to post comments

Android Production Black Camera

June 10, 2019 - 5:20pm #1

Vuforia SDK Version: 8.1.7 -

Description with steps to reproduce: Using Unity 2019.1.4f1, Vuforia 8.1.7, IL2CPP backend.

Android builds in production fail to produce a camera image on initialization. The following Exception is raised.

java.lang.ClassNotFoundException: com.vuforia.VuforiaUnityPlayer.VuforiaInitializer

I found that by disabling Proguard in production mode the camera image will return & vuforia will initialize correctly. -

Development OS (Mac OS X, Windows, Linux): Mac OS X -

Mobile OS and Version: Android -

Mobile Device Manufacturer and Model name: Samsung Galaxy S8 -

Do the Vuforia Sample Applications show the same behavior?: Yes

Android Production Black Camera

June 11, 2019 - 9:03am #2


We've resolved an issue where some Vuforia symbols were wrongly stripped from Android builds when using Proguard in our upcoming release (hopefully coming soon).

When using Proguard, you're required to define which classes/package names you want to ensure are not stripped. Unity integrated classes are added to this list by Unity, but Vuforia is not on that list.

We recommend this workaround if you require Proguard:

  1. In PlayerSettings under "Publishing Settings -> Build" enable "User Proguard File"
  2. Open the file Assets/Plugins/Android/proguard-user.txt and add the following line:
-keep class com.vuforia.** { *; }


Vuforia Engine Support

Log in or register to post comments