0

I have an Android project in which I'd like to use the appcompat library. I have read the following posts and followed their advice:

Could not find Library.apk!

"Could not find the XXX.apk" message in console while starting application with an Android lib linked

When trying to add the library project to my project, I get a green check indicating all is fine (see pic 1 below). After I press OK and open Properties again, this green check is replaced with a red X and there doesn't seem to be a way to get a textual error message (see pic 2). In pic 3 you see what libraries are on the Java build path.

Pics: https://i.stack.imgur.com/QgfII.jpg

Needless to say, I can't build my project. The line

android.support.v7.widget.Toolbar t;

gets the error "android.support.v7 cannot be resolved to a type". I don't see where my setup is wrong.

Community
  • 1
  • 1
Balz Guenat
  • 1,552
  • 2
  • 15
  • 35

2 Answers2

1

If i recall correctly you need to ensure the library is stored on the SAME drive letter as eclipse/your project (Probably C:/, looking at that picture, while the lib is on D:/)

edit: Also, you shouldn't really be importing the library project directly from your SDK folders, Google recommend making a copy in your local project directory

Broak
  • 4,161
  • 4
  • 31
  • 54
1

Try importing and copying the library project into your workspace, i think the problems is that the project doesn´t have the appcompat_v7.jar inside their /bin folder, thats why you have the red cross.

enter image description here

Jorgesys
  • 124,308
  • 23
  • 334
  • 268