开发者

How to resolve build path errors?

开发者 https://www.devze.com 2023-02-05 11:30 出处:网络
If I run my project this error will come build path problem how to solve this error. error: Description Resource Path Location

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' i开发者_运维百科s 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?

How to resolve build path errors?


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


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:

How to resolve build path errors?

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.


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


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消