Log in or register to post comments

Vuforia SDK and Google Glass

February 22, 2014 - 8:33pm #1

Hi,

I'm trying to compile the Vuforia 2-8-7 SDK for glass and I'm getting a lot of errors that point to an API version issue things like 

Description Resource Path Location Type
R cannot be resolved to a variable SampleAppMenu.java /ImageTargetsNative/src/com/qualcomm/QCARSamples/ImageTargets/ui/SampleAppMenu line 87 Java Problem
 
These guys seem to have gotten it to work: http://arforglass.org/?project=vuforia-on-glass but they don't really explain their process for compiling the SDK.
 
Is there a version of the SDK that works with the Android Ice Cream Sandwitch (4.0.3) SDK?
 
Thanks.
~Shane

Vuforia SDK and Google Glass

February 25, 2014 - 9:19am #10

Ok, thanks for sharing this. And looking forward to seeing your results posted.

Cheers.

 

Vuforia SDK and Google Glass

February 25, 2014 - 8:50am #9

Hi,

I have an update on this thread.

I was able to get the Android 4.0.3 SDK to compile using Vuforia 2-7-8 SDK.

However, I have not been able to successfully run the Glass SDK (called GDK) with this. The reason for this is because there are fundmental differences between typical Android functionality and Glass.  This is described in detal here: https://developers.google.com/glass/design/ui/index. To get this AR Library to run on glass I'll need to go into the AndroidManifest.xml and several other of the "Actions" based files which do not apply to Glass. I'm working on doing that now. When I get it to work I'll post the result here. It will probably be about a few weeks. If anyone else has 'cleaned' these samples for Glass it would be helpful to see them.

Thanks,

~Shane

Vuforia SDK and Google Glass

February 24, 2014 - 9:16am #8

Yes, Vuforia can work with API level 15.

actually, the minimum API level required by Vuforia 2.8 is level 9 (Android 2.3), so everything above that will work.

Nevertheless, your Android project may contain errors (not due to Vuforia). So, on the Vuforia side, you should be able to make it work.µChoose API level 15 as target, and select Android 4.0.3 (API 15) as your Android SDK dependency in the project.  

Vuforia SDK and Google Glass

February 24, 2014 - 8:39am #7

Hi Alessandro,

Thanks again for getting back to me...Can you help to verify two things 1: that Vuforia 2-8-7 SDK works with API level 15 2. That Vuforia 2-8-7 SDK works with the build target that I have circled in red in the attached picture? If it does what does this line:

<uses-sdk android:minSdkVersion="Y" android:targetSdkVersion="XX" />

Need to read in my AndroidManifest.xml to make this work? There is some sample code for Glass and the process to comple an app here (which I have done successfully): 

https://developers.google.com/glass/develop/gdk/quick-start

I 'thought' that I had gone through this process but for Vuforia 2-8-7 SDK but I will double check tonight. Any insight to get this build process flushed out would be helpful.

Thanks again!

~Shane

 

 

AttachmentSize
Image icon properites build target.png42.95 KB

Vuforia SDK and Google Glass

February 24, 2014 - 7:05am #6

Thanks brvandewalle for the tip.

 

shanekirkbride

you will need to use a lower SDK API level in this case,   and then fix any errors that may arise in the Layout or other res files, so to make sure the project is compatible with level 15, as indicated by brvandewalle.

 

Vuforia SDK and Google Glass

February 24, 2014 - 6:31am #5

Glass project have to be compiled with the Glass compiler and has to use version 15.

Vuforia SDK and Google Glass

February 24, 2014 - 12:31am #4

Ok, froml your screenshots I seem to understand that you have Android 4.4.2 (API level 19) installed, but the project is targeting API level 18;

you should be able to fix this by selecting Android 4.4.2 in your Project > Properties > Android, and then:

edit your "project.properties" file (located at the root of your project) and set this line  target=android-19 (instead of target=android-18)

edit your AndroidManifest.xml and change the target-SDK to 19, i.e. edit this line:

<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="19" />
 
This should be sufficient.
 

Vuforia SDK and Google Glass

February 23, 2014 - 3:00pm #3

Hi,

Thanks for your help and getting back to me so quickly. I'm going to give a quick snapshot of what I'm doing and maybe you can point me in the right direction.  First here is the ADT version:

Android Developer Tools
 
Build: v22.3.0-887826
 
This product includes Eclipse Platform, JDT, CDT, EMF, GEF and WTP,
all of which are Copyright (c) Eclipse contributors and others.
 
Android Developer Tools are Copyright (c) The Android Open Source Project.
 
 
I've attached screen shots of the rest of what I'm trying to do here. Is the build target correct for Glass?
 
Thanks!
~Shane

Vuforia SDK and Google Glass

February 23, 2014 - 1:00am #2

Vuforia is perfectly compatible with Android 4.0 ICS.  But you need to make sure that you also have that version of the Android SDK installed and setup in your Eclipse project.

Usually the error "R cannot be resolved..." comes from the fact that Eclipse cannot generate the R class, and this usually happens as a consequence of other errors in the project, which prevent it from completing the Build successfully.  So, you need to see which errors are present and fix those (you can find them in the "Problems" list in the bottom of the main page in Eclipse).

 

Log in or register to post comments