Log in or register to post comments

Issuing "R cannot be resolve to a variable" in ImageTarget 2.0.6 Samples

May 25, 2013 - 7:56pm #1

Hi everyone, 

I'm having problem with my ImageTargets Samples 2.0.6...

It's seems like my R.java files is missing and I don't know how to fix it...

I have tried several method but the R files didn't come out...

I hope one of you can help me to fix this problem...

Maybe this image will help you...

AttachmentSize
Image icon eror.png159.2 KB

Issuing "R cannot be resolve to a variable" in ImageTarget 2.0.6

September 11, 2013 - 3:01am #10

I have followed the instructions specified in the instruction guide step by step. Attached a snap shot of the sdk-tools installed. Do let me know if I have missed out on anything.

 

https://developer.vuforia.com/sites/default/files/snapshot.png

AttachmentSize
Image icon snapshot.png126.22 KB

Issuing "R cannot be resolve to a variable" in ImageTarget 2.0.6

September 11, 2013 - 2:20am #9

You probably simply need to update Android SDK; you can do this using the Android SDK Manager in Eclipse; this is explained in the Getting Started guide:

https://developer.vuforia.com/resources/dev-guide/step-1-setting-development-environment-android-sdk

 

Issuing "R cannot be resolve to a variable" in ImageTarget 2.0.6

September 11, 2013 - 12:58am #8

Hi,

I keep getting [2013-09-11 12:58:51 - ImageTargets] Unable to resolve target 'android-17' after importing ImageTargets. After reading on google I changed project.properties target=android18. But then it started giving me an error R cannot be resolved to variable.

And if I change it target 'android-16' I get unable to resolve target 'android-16' and

The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files Texture.java /ImageTargets/src/com/qualcomm/QCARSamples/ImageTargets line 1 Java Problem
 
I am very new to android development. Please help me out.
 

Issuing "R cannot be resolve to a variable" in ImageTarget 2.0.6

May 27, 2013 - 2:54am #7

Ok.

Thx :)

Issuing "R cannot be resolve to a variable" in ImageTarget 2.0.6

May 27, 2013 - 2:19am #6

Issuing "R cannot be resolve to a variable" in ImageTarget 2.0.6

May 27, 2013 - 12:16am #5

ok, done...

can you help me? I'm having problem with ndk-build now...

(check your messages)

Thx :)

Issuing "R cannot be resolve to a variable" in ImageTarget 2.0.6

May 26, 2013 - 11:20am #4

Hi, if you changed Android version to 2.2, 

chances are that you now have some errors in your AndroidManifest.xml or in one of your layout files;

Eclipse should highlight those errors in red;

for instance, if you see something like:

orientation|keyboardHidden|screenSize|smallestScreenSize

you may need to remove the "screenSize" and "smallestScreenSize"

(note: removing them will not cause any problems, but then the project should compile)

 

Issuing "R cannot be resolve to a variable" in ImageTarget 2.0.6

May 26, 2013 - 3:33am #3

AlessandroB wrote:

Hi, the R.java file is an automatically generated file (Eclipse should automatically generate it);

check if you also have other errors in your project (as this may also prevent Eclipse from producing the R file)

You can also try closing and reopening Eclipse, as this sometimes fixes problems. 

If nothing works, you could try re-importing the project again.

 

The issue happen after I change built target from Android 4.2 to Android 2.2...

what should I do after I changing the built target?

Sorry I'm newbie in Android and Vuforia :)

Thx before :)

Issuing "R cannot be resolve to a variable" in ImageTarget 2.0.6

May 26, 2013 - 12:12am #2

Hi, the R.java file is an automatically generated file (Eclipse should automatically generate it);

check if you also have other errors in your project (as this may also prevent Eclipse from producing the R file)

You can also try closing and reopening Eclipse, as this sometimes fixes problems. 

If nothing works, you could try re-importing the project again.

 

Log in or register to post comments