Kalwang / beginning-android-games

Automatically exported from code.google.com/p/beginning-android-games
0 stars 0 forks source link

Projects do not clean after loading #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Loaded projects into Eclipse tried Clean but getting all these errors

[2011-05-24 19:00:29 - ch12-droidinvaders] Unable to resolve target 'android-9'
[2011-05-24 19:00:29 - ch02-hello world] Unable to resolve target 'android-3'
[2011-05-24 19:00:29 - ch11-gl-advanced] Unable to resolve target 'android-9'
[2011-05-24 19:01:16 - ch04-android-basics] ERROR: Unable to open class file 
C:\Zvi\Android Beginning Games 
Development\ch04-android-basics\gen\com\badlogic\androidgames\R.java: No such 
file or directory
[2011-05-24 19:01:17 - ch06-mr-nom] ERROR: Unable to open class file 
C:\Zvi\Android Beginning Games 
Development\ch06-mrnom\gen\com\badlogic\androidgames\mrnom\R.java: No such file 
or directory
[2011-05-24 19:01:18 - ch07-gl-basics] ERROR: Unable to open class file 
C:\Zvi\Android Beginning Games 
Development\ch07-gl-basics\gen\com\badlogic\androidgames\glbasics\R.java: No 
such file or directory
[2011-05-24 19:01:18 - ch08-2d-gamedev] ERROR: Unable to open class file 
C:\Zvi\Android Beginning Games 
Development\ch08-2d-gamedev\gen\com\badlogic\androidgames\gamedev2d\R.java: No 
such file or directory
[2011-05-24 19:01:19 - ch09-jumper] ERROR: Unable to open class file 
C:\Zvi\Android Beginning Games 
Development\ch09-jumper\gen\com\badlogic\androidgames\jumper\R.java: No such 
file or directory
[2011-05-24 19:01:21 - ch10-gl-3d] ERROR: Unable to open class file 
C:\Zvi\Android Beginning Games 
Development\ch10-gl-3d\gen\com\badlogic\androidgames\gl3d\R.java: No such file 
or directory

Windows XP, Eclipse Helios 3.6

Please provide any additional information below.

Original issue reported on code.google.com by zvido...@btinternet.com on 24 May 2011 at 6:05

GoogleCodeExporter commented 9 years ago
P.S. Only one project - Chapter 2 - appears to have built correctly

Original comment by zvido...@btinternet.com on 24 May 2011 at 6:34

GoogleCodeExporter commented 9 years ago
Loaded code after ordering the book from Amazon UK - hoping to resolve this by 
the time the book arrives next week.

Original comment by zvido...@btinternet.com on 24 May 2011 at 6:51

GoogleCodeExporter commented 9 years ago
ISSUE HAS NOW BEEN RESOLVED

Original comment by zvido...@btinternet.com on 25 May 2011 at 5:35

GoogleCodeExporter commented 9 years ago
I have read and coded from the book and am now on chapter 4. I decided to 
import all the source code to a separate workspace and now have the same above 
mentioned problem. All projects contain errors. Only Chapter 2 is built 
correctly.

Original comment by fahadshe...@gmail.com on 7 Jun 2011 at 3:23

GoogleCodeExporter commented 9 years ago
i have the same case, it says that gen is missing in all of them except #2

zvido.. how did you resolve this issue??

Original comment by ali.sam...@gmail.com on 9 Jun 2011 at 6:43

GoogleCodeExporter commented 9 years ago
Hi Ali
The discussion has moved to the author's website (badlogic) forum.
I simply cleaned the projects again and agiain, shutting down and restarting 
Eclipse from time to time, until by themselves they started creating the 
generated R files.
A couple of projects were aimed at SDKs I do not have installed (2.3, 3.0) so I 
had to go into the project properties and cange the targets to 2.2.
Best of luck.

Original comment by zvidor...@googlemail.com on 9 Jun 2011 at 7:26

GoogleCodeExporter commented 9 years ago
I think it would be better if you skipped the step where you switch to another 
workspace since it messes (resets) the ADT settings

Original comment by ajbo...@gmail.com on 15 Aug 2011 at 8:46

GoogleCodeExporter commented 9 years ago
General solution:

1) make sure your Android SDK path is set correctly in your workspace (Window 
-> Preferences -> Android).
2) Create the gen/ folders manually, then refresh the projects in Eclipse.

Original comment by badlogicgames on 24 Aug 2011 at 4:06

GoogleCodeExporter commented 9 years ago
Tested this with Eclipse Indigo in Ubuntu

1. Import all the projects into Eclipse.
2. Restart Eclipse.
3. Edit the file "project.properties" for each of the projects with errors: 
change to "target=android-8" if you have android 2.2 installed. Save the file 
and Eclipse will auto-generate and the error will be resolved.

Original comment by kk7...@gmail.com on 1 Jan 2012 at 4:33