How to resolve build path errors?

。_饼干妹妹 提交于 2019-12-30 08:14:10

问题


If I run my project this error will come build path problem how to solve this error.

error:

  1. Description Resource Path Location Type Project 'videothumb' is missing required source folder: 'gen' videothumb Build path Build Path Problem
  2. The project cannot be built until build path errors are resolved videothumb Unknown Java Problem

Can any one help me?


回答1:


Try to clean project and if it still doesn't help close and then open project.




回答2:


IF you are using eclipse then do as follows:

  1. right click your project.
  2. select build path-->configure build path.
  3. update all the broken links in all 4 tabs.
  4. Go to project-->clean [project will be found at top menu of eclipse.]
  5. Clean your project.

Its done. For any further explanation comment on my answer.

Hope this helps.

Edit:

Here you go:

As you can see i'm at source tab of configure build path and i have only one folder here named ATalk/Src. likewise you can have number of folders.

Check for red cross mark on folder. if its there then your folder path is wrong means link is broken for that folder.

Same way you can check in Libraries tab. There you will find list of jars in your project. If any of them have red cross then its path is missing. So update all such red cross paths.

As you can see i dont have a red cross on my folder means it is at correct location.

Hope you get my point.




回答3:


EDIT:
I just noticed that, according to your screenshot, the problem seems to be that the adb tool is not found. Now I might be wrong but I think that as of Android 2.3 (maybe even earlier) the adb tool is expected to be in [path-to-your-sdk]/platform-tools folder, not in the [path-to-your-sdk]/tools folder. The later path was used in earlier SDK's and your problem might be caused by such a simple thing that you have an outdated Android plugin in Eclipse.

OLD, IRRELEVANT ANSWER:
I've seen these kind of issues in Eclipse environments when I have some kind of error in my XML files. Malformed errors (that violate the rules of the XML structure) are often treated as "syntax errors" and are shown directly when you write them or when you try to build your application.

Other errors, however, like giving invalid references (giving a dimension where an integer is expected, for example) are not always highlighted with file name and failing line number (I'm not sure if this is bug in Eclipse's android plugin or even if it's a bug at all).

These kind of errors you'll have to hunt down manually and rebuild your project (as dcave555 sugested). This is really boring work if you have many XML files with many changes in




回答4:


I think the path should look like this: /home/embdes/projects/android/android-sdk-linux_86




回答5:


The problem is because of your Android build path settings. Try to check:

Window > Prefereces > Android > Build path

it should properly set to your Android SDK



来源:https://stackoverflow.com/questions/4745366/how-to-resolve-build-path-errors

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