Log in or register to post comments

Vuforia How To Use Android Plugins in Unity Apps

March 2, 2015 - 12:30am #1

 How To Use Android Plugins in Unity Apps?

I do same as this article said https://developer.vuforia.com/library/articles/Solution/How-To-Use-Android-Plugins-in-Unity-Apps,

But,some thing is wrong

import com.qualcomm.QCARUnityPlayer.QCARPlayerActivity;

Ican not import this,what is wrong?

I use vuforia-unity-android-ios-3-0-9.unitypackage

 

AttachmentSize
Image icon QQ截图20150302163011.png28.44 KB

Vuforia How To Use Android Plugins in Unity Apps

March 2, 2015 - 6:17pm #3

Thank you!

May be The unity vuforia extend is update,so, In eclipse Just do like this :

import com.qualcomm.QCARUnityPlayer.*;
 
public class MyPluginActivity extends QCARPlayerNativeActivity  
 

Vuforia How To Use Android Plugins in Unity Apps

March 2, 2015 - 6:11pm #2

Have you added

  • Vuforia.jar
  • QCARUnityPlayer.jar

to your project. See: https://developer.vuforia.com/library//articles/Solution/How-To-Extend-the-Unity-Android-Activity

 

e.g.

 

Copy Vuforia.jar and QCARUnityPlayer.jar from the "/plugins" directory of the "QCARUnity" project to the "/libs" folder of the "QCARJava" project.

 

Log in or register to post comments