0

So I'm trying to import an existing project to eclipse and it's causing me a lot of trouble. I'll explain step by step, exactly how I'm trying to import it and someone please help me finish the importing because no matter how I do it, I still keep getting errors.

So as soon as I finish importing the existing android application there is a red exclamation mark (!) next to the project folder in eclipse. So I right clicked it and selected 'configure build path' enter image description here

I then click on every single jar and select a new path. First, I found android support v4 in sdk/extras/android/support/v4, then I found google-play-services_lib in sdk/extras/google/google_play_services/libproject/google-play-services_lib/bin, and the last one (google-play-services) is at google-play-services_lib/bin.

So now after I'm done setting paths for those jars, the red exclamation mark disappears and a new error appears.

enter image description here

Now I right clicked the project again and selected properties --> android and this is what I see: enter image description here

I then imported google-play-services_lib in eclipse as 'library project', but the red cross remained there, so I tried adding it manually with 'add button'.

As for the other 2 missing libraries, I googled about it and found out that CaptureActivity is from zxing barcode scanned library. So I downloaded the newest zxing version (2.2) and imported the library manually, same as I did with google play services. Right after importing CaptureActivity in eclipse and before even adding it to my application, this is what happens and I have no idea how to fix it. enter image description here

Even though the eclipse gave me an error when importing zxing 2.2, I still added it to my project's libraries and now some errors disappeared. The only error I'm still getting is on qr_portrait_camera in folder layout: enter image description here

So I right clicked my imported project again to see build paths again and this is what I notice: enter image description here

So this is it. This is where I'm stuck and can't go forward, I googled a lot, did every kind of research I could and I don't know what to do anymore.

These are the three remaining problems that I've got:

  • I need to import one more library and I don't know where to find it (PortraitQR):

enter image description here

  • CaptureActiviy imported library project still shows a lot of red errors and I don't know how to fix that.

  • There's a CaptureActivity.jar in build path that shows an error and I can't either remove it or find a path to it.

I really need to fix this as soon as possible, I will be very grateful for any kind of help!

Guy
  • 6,414
  • 19
  • 66
  • 136
  • http://stackoverflow.com/questions/17611017/importing-google-play-service-library-showing-a-red-x-next-to-this-reference-and/17611095#17611095. the red x means its a broken link path. check the link might help – Raghunandan Jul 16 '13 at 12:44
  • You shoudl reference google play services library in your map project. R u adding the jar to libs folder? – Raghunandan Jul 16 '13 at 12:52
  • @Raghunandan about the red x...I know that, but as I said I still haven't figured out where to find certain files to then choose a path. What do you mean by adding jar to libs folder? – Guy Jul 16 '13 at 13:51

1 Answers1

2

I figured it out. I just had to put all jars in libs folder and then download all 3 libraries, The one missing was causing all the trouble.

Guy
  • 6,414
  • 19
  • 66
  • 136