Android Library Dependencies broken after SDK/ADT-Update
Asked Answered
E

5

15

Today, I updated my Android SDK and Eciple ADT to the most recent versions (ADT Rev 22). After restarting Eclipse it is quite unhappy with the Build Paths whenever I reference custom libraries.

An example is shown in this screenshot: enter image description here

My custom "Android Utilities Library" compiles fine, but everything that depends on it shows build path errors. E.g. when I investigate the build path settings for "Android URA Library" it shows me an error with the android_utilities_library.jar missing under "Android Dependencies" (which in fact is true, the libraries will be built to individual class files in bin/classes).

After reading the solution to Build path errors with library projects I tried to clean and manually build my projects in the correct order, but to no avail.

I've never dealt with this before, so I don't know how to attack the problem.

Any help is appreciated. Thx!

Etheline answered 21/5, 2013 at 12:25 Comment(5)
try this: go to the order and export tab and tick the box beside your custom libs, then try clean and build.Hydrotherapy
Try this or this. Those are two solutions to the most common problems in ADT 22.Behead
Installing the new Build Tools did the trick. Thx!Etheline
please move it to answeredMadge
wow been 10 hours desperately trying different things. Thanks for this post guys! I was close to switch to iphone xDDReconstructionism
E
7

Installing the new Build Tools did the trick. They were not automatically included when I updated the SDK (probably need to run the update twice I guess).

Etheline answered 29/5, 2013 at 9:31 Comment(2)
yep you are right.. the first time I updated and deleted packages and I thought that everything is OK !! but the same error above appeared so when I run the update again (Window - Android SDK Manager) I had new packages to delete and install others .. So after the second update I could work well. Thanks for your answer chris :))Kaja
Hi, i have same issue. i did like you said. installed new build tools buy still there is problem. android dependancy has red cross over it and i can not run my any project. thanksTradein
S
2

I found a solution that works for me: Go to Project Properties > Build Path > Order and Export

Then you have to check each checkbox. In my case my libraries were restored

I hope it will help.

Selfdetermination answered 28/5, 2013 at 18:55 Comment(0)
C
1

I can see that your project Android URA Library is referring to Android Utilities Library, then the problem should not relate to SDK/ADT update.

Please check:

  1. Project Properties of Android URA Library, choose Project tab and make sure you added Android Utilities Library as dependency project. Otherwise, please add it.
  2. If the problem is still existing, then Projects \ Clean All Projects
Coddle answered 27/5, 2013 at 14:50 Comment(0)
S
0

Go to libraries and check the build path of the dependent libraries. It should be same as your projects build path.

Stopping answered 8/8, 2014 at 8:10 Comment(0)
S
-1

if you have import all the Dependencies in your workSpace.maybe you can:projetc-->build all. I meet the problem,and it works well

Syphilis answered 23/3, 2016 at 3:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.