Cannot create library dependent project after upgrading to 14 ADT

To implement different versions of our user interface, we split our program into special user interface code and a common library project, which has everything else. Until yesterday, when I upgraded to ADT 14, everything worked fine. Now I canโ€™t build. I keep getting the error "Container" Library projects "refers to a non-existing library" the path to the bin folder of my shared project and the name project.jar "

I was everywhere on the Internet and tried everything I could think of to fix this to no avail. Can anybody help me? I am basically stuck at this point.

+7
source share
4 answers

Perhaps you have the same problems as when switching to the new ADT:

In my previous setup, I had a sharing of resources between the library and the main project. The library project will not compile without errors on its own, but only in combination with the main project, which added the missing resources.

Now it does not work.

The library project should now fully compile the error. When the build process will create the name <lib_project_name> .jar in the bin folder of the library project.

If the jar file was not created (thus, the build process of the library project was unsuccessful for some reason - for example, due to changes in the R.java file (see http://tools.android.com/recent/buildchangesinrevision14 ) You will receive the error message that you described.

In addition, I had to manually delete the <lib_project> _src project from the project.

+7
source

I had a problem with several different projects in which I made the corrections suggested in another answer, but they were temporarily fixed.

Each time I open Eclipse again or run the Clean project, the Library Projects project disappears and I will need to open the project properties, delete the library, and add it again.

I solved it with difficulty, creating a new project and copying everything into it.

Then I found a simple way to solve it. Right-click the project, Refactor -> Rename. You can rename it later. This is fixed.

+1
source

Check out the article โ€œChanges to Library Projects in the Android SDK Tools, r14โ€ ( http://android-developers.blogspot.com/2011/10/changes-to-library-projects-in-android.html ) on the Android Developers Blog.

eg. @ P.Melch: โ€œI had to manually remove _src from the projectโ€, this should be done as follows:

To fix the project, you must delete the extraneous source folders with the following steps:

  • Right-click the source folder and select "Assembly Path"> "Remove from Assembly" path.
  • A dialog box will appear. In it, be sure to check the box "Unlink the folder from the project" to completely delete the folder.
0
source

You must update the Android SDK in the Android SDK Manager

Android SDK Tools Intalled Installed Android SDK Plataforms Android SDK Builds Installed

0
source

All Articles