Reputation: 971
If I run my project this error will come build path problem how to solve this error.
error:
Can any one help me?
Upvotes: 10
Views: 54334
Reputation: 9629
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
Upvotes: 0
Reputation: 10485
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
Upvotes: 1
Reputation: 1331
I think the path should look like this: /home/embdes/projects/android/android-sdk-linux_86
Upvotes: 0
Reputation: 59694
IF you are using eclipse then do as follows:
build path-->configure build path
.project-->clean
[project will be found at top menu of eclipse.]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.
Upvotes: 7
Reputation: 904
Try to clean project and if it still doesn't help close and then open project.
Upvotes: 12