mfaella/beginning-android-games

Do not remove starting errors, when i import code

Opened this issue · 3 comments

Hello, I love book, but I have one problem. I saw in youtube a tutorial how to 
download your code and I did it. But at the end when you import code to 
Eclipse, I have a errors show up. But in tutorail you fix this problem by going 
to Project and Clean. I did the same, but did work.
I said to me:
"Cleaning all projects has encountered a problem. Errors occured during the 
build".

And there is button ok and Detail
In Details it said:"Errors occurred during the build.
Errors running builder 'Android Pre Compiler' on project 'ch02-hello-world'.
Resource '/ch02-hello-world/gen' does not exist.
Resource '/ch02-hello-world/gen' does not exist.
Errors running builder 'Android Pre Compiler' on project 'ch04-android-basics'.
Resource '/ch04-android-basics/gen' does not exist.
Resource '/ch04-android-basics/gen' does not exist.
Errors running builder 'Android Pre Compiler' on project 'ch06-mrnom'.
Resource '/ch06-mrnom/gen' does not exist.
Resource '/ch06-mrnom/gen' does not exist.
Errors running builder 'Android Pre Compiler' on project 'ch07-gl-basics'.
Resource '/ch07-gl-basics/gen' does not exist.
Resource '/ch07-gl-basics/gen' does not exist.
Errors running builder 'Android Pre Compiler' on project 'ch08-2d-gamedev'.
Resource '/ch08-2d-gamedev/gen' does not exist.
Resource '/ch08-2d-gamedev/gen' does not exist.
Errors running builder 'Android Pre Compiler' on project 'ch09-jumper'.
Resource '/ch09-jumper/gen' does not exist.
Resource '/ch09-jumper/gen' does not exist.
Errors running builder 'Android Pre Compiler' on project 'ch10-gl-3d'.
Resource '/ch10-gl-3d/gen' does not exist.
Resource '/ch10-gl-3d/gen' does not exist.
Errors running builder 'Android Pre Compiler' on project 'ch11-gl-advanced'.
Resource '/ch11-gl-advanced/gen' does not exist.
Resource '/ch11-gl-advanced/gen' does not exist.
Errors running builder 'Android Pre Compiler' on project 'ch12-droidinvaders'.
Resource '/ch12-droidinvaders/gen' does not exist.
Resource '/ch12-droidinvaders/gen' does not exist."

So pls can you help me, i do not know what to do?
Thank you


Original issue reported on code.google.com by bertot...@gmail.com on 31 Oct 2011 at 2:42

 Do you have  error like Unable to resolve target 'android-8' in the console?. If you have them, then it is because you haven't installed android sdk for various versions. You need to install android 2.2(8), 2.3 etc to build them.

Hopes this solves your problem.

Original comment by josephva...@gmail.com on 11 Nov 2011 at 7:35

From what I found, and it's a long shot, there is a file permission error. I 
cannot create a "GEN" folder in each chapter. It would be logical to me that if 
I cannot create folders then the ADK wouldn't be able to either.  

Original comment by chadth...@gmail.com on 3 Dec 2011 at 10:43

Sorry to double post.. but sure enough that was it. I manually created a "gen" 
folder in each chapter, then Opened Eclipse, Right-Clicked on each project and 
hit "Refresh" and the world was a better place. Hope it helps someone. 

Original comment by chadth...@gmail.com on 3 Dec 2011 at 10:49