Log in or register to post comments

camera

March 19, 2014 - 6:36pm #1

CameraDevice.getInstance().init() 

or

CameraDevice.getInstance().start()

methods occur errors.

 

log said 

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.helloworld/com.example.helloworld.MainActivity}: java.lang.RuntimeException: Use of the Java Vuforia APIs requires initalization via the com.qualcomm.vuforia.Vuforia class

 

i dont know 'initalization'.

plz help me ㅠ_ㅠ

 

* i grant permission to camera, internet on AndroidManifest.xml.

 

camera

March 20, 2014 - 2:13am #2

This message:

Use of the Java Vuforia APIs requires initalization via the com.qualcomm.vuforia.Vuforia class

is saying that you are probably using QCAR.init() instead of Vuforia.init(), but you are using the Java API of Vuforia (introduced in Vuforia 2.8)

Are you migrating a project previously developed with Vuforia previous versions ?

Have a look at the sample code in VuforiaSamples-2-8-8, in particular in the SampleApplicatioSession.java to see an example of correct initialization.

 

Log in or register to post comments