Android Library Dependencies broken after SDK/ADT-Update

拈花ヽ惹草 提交于 2019-12-05 11:49:42

问题


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:

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!


回答1:


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).




回答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.




回答3:


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



回答4:


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




回答5:


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



来源:https://stackoverflow.com/questions/16669978/android-library-dependencies-broken-after-sdk-adt-update

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!