Log in or register to post comments

New to Java/Eclipse

December 3, 2010 - 11:38am #1

I am new to Java and was wondering what I am doing wrong.
I followed the "Getting Started" guide word for word and still get errors.

Eclipse is telling me "com.qualcomm.QCAR.QCAR" does not exist.

Also in the console it says:
[2010-12-03 14:17:21 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read C:\Users\owner\Desktop\android-sdk_r07-windows\android-sdk-windows\AndroidManifest.xml: java.io.FileNotFoundException: C:\Users\owner\Desktop\android-sdk_r07-windows\android-sdk-windows\AndroidManifest.xml (The system cannot find the file specified)

Am I not importing or linking something?

I compiled what it told me to via "ndk-build" in the respective directories, and the guide said there is a script that handles coping the aproprate lib's, does this need to be modified? I also did the "Clean" on both projects.

Re: New to Java/Eclipse

December 3, 2010 - 3:01pm #10

No, but thanks. The devices have to be configured on our end. We're working on supporting all Snapdragon devices right now, and at the end of the beta non-Snapdragon devices will be supported as well.

- Kim

Re: New to Java/Eclipse

December 3, 2010 - 2:48pm #9

Lol, was in the middle of editing my last post.

One last question.

Anything I can do to get it to work on the Aria? Maybe help speed up the process in someway?

Re: New to Java/Eclipse

December 3, 2010 - 2:37pm #8

Ah, the HTC Aria is not currently supported. Please see the Device Compatibility sticky for more details:

http://ar.qualcomm.at/node/2000017

As far as the license goes, while the SDK is in beta we ask that you contact us before releasing any applications. Once the SDK is out of beta you will be able to release/commercialize your apps, without any fees or royalties to Qualcomm.

- Kim

Re: New to Java/Eclipse

December 3, 2010 - 2:20pm #7

Issue solved, kinda.

I deleted the ImageTargets from disk and "restored" the QCAR sdk, and repeated the processes again. It works now with no exceptions being raised.
It showed that R.drawable didn't exist at one time, and I think that is what the Null errors where from.

I was able to run it on my HTC Aria running firmware 2.1 and can't get it past the splash screen, but great progress. I doubt I'll have my project done in time for judging though.

Next competition should offer an internship as top prize.

For clairity and lack of reading the license can we dev, and put our .apk on the market for $$$, or does Qualcomm want a percentage? Either way, it is AWESOME this is being put out there. AR is the next step for the future, and Qualcomm is making it easier for innovation.

[EDIT]
Found the thread for the license. And didn't see the Aria in the supported devices.

Re: New to Java/Eclipse

December 3, 2010 - 2:07pm #6

Sorry, I haven't seen this this exact problem before. Can you build any of the Android sample applications? That would let us know if this is QCAR related, or just an issue with your Android/Eclipse setup.

You might also try moving your Android SDK folder to C:\Development\Android\ as suggested in the Getting Started guide.

I've asked internally if anyone else has seen this issue. I'll let you know!

- Kim

Re: New to Java/Eclipse

December 3, 2010 - 1:25pm #5

Every thing is the same, even the "Is Library" except there are two extra files in
ImageTargets --> libs --> armeabi/armeabi-v7a named gdb.setup and gdbserver.

I tried deleting them, and that gives me more NullPointer errors on top of the ones already mentioned.

Again, thanks for your help.

Re: New to Java/Eclipse

December 3, 2010 - 1:12pm #4

Make sure the ImageTargets project is named exactly that. You should have two projects in Eclipse, and the following library files under those:

com_qualcomm_QCARSamples_Shared
- libs
- - armeabi
- - - libQCAR.so
- - - libShared.so
- - armeabi-v7a
- - - libQCAR.so
- - - libShared.so

ImageTargets
- libs
- - armeabi
- - - libImageTargets.so
- - armeabi-v7a
- - - libImageTargets.so

Let's check something else as well. Right-click on the shared project, choose Properties, and look at the Android tab. Is there a "Is Library" checkbox there? If not, you need to update your ADT (Android Developer Tools). Go to Help > Check for Updates.

- Kim

Re: New to Java/Eclipse

December 3, 2010 - 1:01pm #3

I am on Windows 7 64bit.

I didn't set the Environment Variable.

I did:

Window -> Prefs. -> Java -> Build Path -> Classpath Variable and added the QCAR_SDK_ROOT with Path to the sdk.

Re-compiled Shared &; ImageTrackers and deleted/re-created new projects for both. Shared is re-named correctly also.

Now I get the same error plus:
[2010-12-03 14:49:58 - ImageTargets] AndroidManifest.xml file missing!
[2010-12-03 15:46:00 - ImageTargets] Failed to create library links: ImageTargets does not exist
[2010-12-03 15:47:06 - ImageTargets] AndroidManifest.xml file missing!
[2010-12-03 15:48:58 - ImageTargets] Unknown error: java.lang.NullPointerException
[2010-12-03 15:50:23 - ImageTargets] Unknown error: java.lang.NullPointerException

The good news is, it is no longer highlighting com.qualcomm.QCAR.QCAR; so some progress has been made.

I am sorry I am being such a pain.

Re: New to Java/Eclipse

December 3, 2010 - 11:55am #2

Did you set up the QCAR_SDK_ROOT Eclipse Environment Variable? See step 2 of the getting started guide. Also, make sure that you've named your Shared project com_qualcomm_QCARSamples_Shared in Eclipse.

You may have to refresh the project after building the shared libraries (using ndk-build). Right-click on the project in the Package Explorer and choose Refresh.

What operating system are you using? In Windows, the .bat script will copy the necessary libraries for you automatically. On Mac or Linux, you will have to do this yourself. See the following thread for more details:

http://ar.qualcomm.at/node/2000020

- Kim

Log in or register to post comments