0

I have an android project that has a reference to project MyLibrary. I have checked Is Library for project MyLibrary and build it without error.

I have added MyLibrary to Main Project in Properties->android->Library and Java Build Path in Projects tab. I can build the Main Project completely.

enter image description here

enter image description here

But when I launch the Main Project I get this error:

[2012-11-18 15:18:08 - MyLibrary] Could not find MyLibrary.apk!

I have cleaned the projects and studied the following links but I have this error yet.

Could not find Library.apk!

Android Eclipse - Could not find *.apk

Could not find ****.apk + android

Why and how can I solve it?

I should mention that when I open Properties->android->Library for Main Project I see that the inserted library has a red cross.

Is it related to slash / and backslash \ in the path of reference in the pictures?

enter image description here

Community
  • 1
  • 1
Bob
  • 22,810
  • 38
  • 143
  • 225
  • 1
    "Library" not "Librarry" (not that it makes any difference here, but just a note :) – Marcin Orlowski Nov 18 '12 at 12:09
  • 1
    1. You must use relative path reference the library project. 2. You may need import the library project into Eclipse under same workspace as the dependant project. More details in [this answer](http://stackoverflow.com/questions/10200751/eclipse-will-not-recognize-project-as-library-actionbarsherlock-viewpagerindica/10219498#10219498). – yorkw Nov 18 '12 at 20:37

1 Answers1

3

Thanks to yorkw. The Main Project was in drive D:... and MyLibrary was in C:.... I put MyLibrary in folder where Main Project was and the problem solved.

Bob
  • 22,810
  • 38
  • 143
  • 225