1

I renamed my Project:

enter image description here

after that i got the red callsign at my Project(which you see in the first Image) and this:

enter image description here

also my projectproperties says this but i'm not sure if this was also the case before renaming:

enter image description here

even that the path is(!) spelled correctly.

I referenced the libaries to my Project:

enter image description here

But i'm not able to fix the Problem. Still he doesn't recognize the Facebook and GPS libs in my Project..

I also checked this:

Libraries do not get added to APK anymore after upgrade to ADT 22

this:

accidentally removed android dependencies folder

and this...

Completely renaming a project in Eclipse

but nothing did the trick.

Any help is appreciated.

Community
  • 1
  • 1
MMike
  • 598
  • 3
  • 23
  • Have you tried a full clean/refresh of all the projects inside your workspace? – bonnyz Jan 02 '15 at 15:55
  • @bonnyz of course after every new Approach i did that – MMike Jan 02 '15 at 15:57
  • Maybe is simpler to create a new project with the correct name and than copy all the files from the old project ;) – bonnyz Jan 02 '15 at 16:04
  • @bonnyz sounds like the last Approach. how can i accomblish that it the easiest way? Do i Need to copy all the files one by one or is there some easier way to accomblish this? – MMike Jan 02 '15 at 16:08
  • @bonnyz because i have a lot of classes and layouts and drawables... – MMike Jan 02 '15 at 16:12

2 Answers2

0

(following up after some comments)

If your project is broken after a refactor and you are going crazy to figure out what's wrong you can consider to create a fresh new project.

Create an empty project starting from the existing one is really simple, just follow this steps:

  1. Create a new project with the desidered name
  2. Copy oldProject/src/ to newProject/src/
  3. Copy oldProject/res/ to newProject/res/
  4. Copy oldProject/libs/ to newProject/libs/
  5. Copy oldProject/AndroidManifest.xml to newProject/AndroidManifest.xml
  6. Check that your project's classpath is set correctly, same for other dependecies.
  7. Refresh all the projects in the workspace (one by one)
  8. Clean (yes, it's always a good idea)
  9. Build all
bonnyz
  • 13,458
  • 5
  • 46
  • 70
0

For each of your projects, verify dependencies in project references & java build path:

  1. File -> Properties
  2. "Java Build Path" verify, that all projects, referenced by current project, are added.
  3. "Project references" verify, that all projects, referenced by current project, are checked.
Eugene Shtoka
  • 1,117
  • 1
  • 8
  • 14