Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Android Pre Compiler' error 'Path must include project and resource name'

I'm trying to compile the Android project SGTPuzzles, and am running into problems that I need help understanding. The error is:

Errors occurred during the build. Errors running builder 'Android Pre Compiler' on project 'SGTPuzzles'. Path must include project and resource name: /SGTPuzzles

I'm new to Android development (and Eclipse and Java), and so I'm not really sure how to figure out the source of the error. I'm running Ubuntu 12.04, ADT v22.3, and have imported the SGTPuzzles project into my Eclipse workspace with the included Git tools.

I searched the web and found similar problems here and here (among some less useful non-stackoverflow results), but no solutions. I've tried clearing my workspace, re-cloning the repository, and restarting Eclipse. I've tried the 'Android Tools'->'Fix Project Properties'. Nothing has helped. I don't know where to look to learn more about what file or resource is causing this problem, so it's tricky for me to debug. Any suggestions would be really appreciated. Thanks!

like image 586
Michael Repucci Avatar asked Jan 02 '14 21:01

Michael Repucci


1 Answers

This helped me:

  • Right click on the project and go to "Properties"
  • Select "Java Build Path" on the left
  • Open "Source" tab
  • Remove "YourProject" from source files (make sure "gen" folder and "src" are in the source files)
  • Again right click on the project and in the "Andriod Tools" click on "Fix Project Properties"
like image 189
mike.tihonchik Avatar answered Sep 17 '22 18:09

mike.tihonchik