I import the examples with File -> Imort
which this will appear in the Console:
[2011-01-06 17:06:49 - Chapter 9 Earthquake] Unable to resolve target 'Google Inc.:Google APIs:7'
then Right click on it -> Properties -> select Android on Left -> Select 2.2 on Build Target (sometimes 2.1 does not work , is that normal?)
then click Apply then click OK
which this will appear in the Console:
[2011-01-06 17:06:57 - Chapter 9 Earthquake] ERROR: Unable to open class file C:\Documents and Settings\Corp\My Documents\My Projects\Chapter 9 Earthquake\gen\com\paad\earthquake\R.java: No such file or directory
then I click on the Green Right Arrow to Run it
it will complain, eventall I click Run Configurations -> select Target tab -> check the check box for 2.2.
now when I click on the Green Right Arrow the emulator will start, however this does not happen on all projects, chapter 2 seems to work but I am tring it on Chapter 9 Earthquake and get error:
Your projecy contains error(s), please fix them before running your application.
After I click on different targets, 2.1 vs 2.2 vs 2.3, the I finally get some red X's on files, and get
The import com.google cannot be resolved.
Code:
import com.google.android.maps.MapActivity;
what do I do to fix this?