Topic locked

Missing classes in Vuforia.jar file

May 13, 2021 - 8:40am #1

I downloaded the latest vuforia-sdk-android-9-8-5.zip and I tried to update my android project by replacing the older Vuforia.jar file and armeabi-v7a folder. Anyway the new Vuforia.jar file is different from the older one and I cannot find the classes I used in my project. How could I resolve this? 

I have to upgrade a vuforia 8-6-10 project to a vuforia 9-8-5 project. Any advice is welcome.

Thanks

Missing classes in Vuforia.jar file

May 21, 2021 - 2:56am #3

I've seen that the latest sample are partly written in Java and partly written in C++, making use of native classes.

My project is entirely written in Java and makes use of the old Java classes, there's any way to migrate the project by calling the native classes from Java?

Where could I find some information? As I said before I have a project developed with vuforia-sdk-8-6-10.

Otherwise where could I find the old Java library?

Moreover, I had an old dataset which I used in my project, but I couldn't find the way to add a new object to that dataset so I created a new one.

So I would like to add to my project this new dataset that I've created with Vuforia Target Manager after having scanned my object with Vuforia Object Scanner.

This is my code:

@Override

    public boolean doLoadTrackersData()

    {

        TrackerManager tManager = TrackerManager.getInstance();

        ObjectTracker objectTracker = (ObjectTracker) tManager

            .getTracker(ObjectTracker.getClassType());

        Log.d(LOGTAG, "funzione doLoadTrackersData ");

        if (objectTracker == null)

            return false;

        if (mCurrentDataset == null)

            mCurrentDataset = objectTracker.createDataSet();

        if (mCurrentDataset == null)

            return false;

        if (!mCurrentDataset.load("ObjectForActions/ObjectForActions_OT.xml",

            STORAGE_TYPE.STORAGE_APPRESOURCE)) {

            Log.d(LOGTAG, "load failed");

            return false;

        }

        if (!objectTracker.activateDataSet(mCurrentDataset)) {

            Log.d(LOGTAG, "activateDataSet failed ");

            return false;

        }

        TrackableList trackableList = mCurrentDataset.getTrackables();

        for (Trackable trackable : trackableList)

        {

            String name = "Current Dataset : " + trackable.getName();

            trackable.setUserData(name);

            Log.d(LOGTAG, "UserData:Set the following user data "

                + trackable.getUserData());

        }

        return true;

    }

It loads and activate the dataset, but it doesn't print anything, as if the TrackableList were empty. How could I resolve this?

I've also seen that while the old file .dat contains files .bin, my new file .dat contains a directory. Could it be a problem? 

Thanks a lot.

Missing classes in Vuforia.jar file

May 14, 2021 - 1:34am #2

Hi,

We deprecated support for Java bindings in 9.0.12 and completely removed them in 9.3.3.

I would advise to check out our latest native sample to see how we build them build: https://developer.vuforia.com/downloads/samples

In addition our library contains: https://library.vuforia.com/articles/Solution/Getting-Started-with-Vuforia-for-Android-Development.html and

Thank you.

Vuforia Engine Support

Topic locked