0

I'm tying to import the volley library, but I've encountered several problems. I'm working on windows.

I tried to compile it, but when I launch

android update project -p .

I get:

Error: C:\Users\UserName\git\volley is not a valid project (AndroidManifest.xml no
t found).

I've also tried importing it directly in eclipse as a library. What I've done is:

  • clone the repository with eclipse
  • import it as an android project from existing code
  • mark it as a library
  • add the dependecy to my project

but the project I'm coding can't find the source codes, in fact the src folder of the library in package explorer is empty

what am I missing?

jack_the_beast
  • 1,838
  • 4
  • 34
  • 67
  • That "Eclipse ADT" is no longer supported, and Android Studio is the new official IDE for Android development. – EpicPandaForce Apr 14 '15 at 10:26
  • I know, but that's a university project. I don't want to move the whole project to Android studio now. Is there a way I can get this library working on eclipse? – jack_the_beast Apr 14 '15 at 10:29
  • Is your ADT/SDK up to date anyway? Since volley framework follows the most recent way of placing files. The AndroidManifest.xml is indeed placed inside volley/src/main. – blender Apr 14 '15 at 11:32
  • yes it is... I upload everything periodically – jack_the_beast Apr 14 '15 at 11:34

3 Answers3

3

Even I faced many times the same problem, So usually I download jar file. Refer this link SO : Volley Project - Jar. Download the link provided by @Ankit.

Community
  • 1
  • 1
Bharatesh
  • 8,943
  • 3
  • 38
  • 67
2

If it helps you can use this jar file which I extracted out from some project and it worked for me.

Ankit Bansal
  • 1,801
  • 17
  • 34
0

You must tell your project to depend on your library project. To apply this you must have your library project imported to Eclipse already, then you right click on your project to open its preferences screen. There you will find Android tab to apply the setting. If you just want to depend on an jar file, you will have to setup the compiler before. For this also head to your project properties and loog for "Java Build Path" and there for Libraries. You may also have to apply "Order & Export" settings afterwhile.

blender
  • 361
  • 3
  • 16