Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional Android 2 Application Development
This is the forum to discuss the Wrox book Professional Android 2 Application Development, 2nd Edition by Reto Meier; ISBN: 978-0-470-56552-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android 2 Application Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 6th, 2011, 06:19 PM
Registered User
 
Join Date: Jan 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to properly run/import example projects?

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?




Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you import these projects into Eclipse? darrinps BOOK: Professional Android 2 Application Development 6 March 6th, 2012 10:04 PM
Browsed web projects don't appear in recent projects list? Ron Howerton Visual Studio 2008 0 June 23rd, 2010 12:52 PM
Text Import- How to import the first 5 lines. nickzhang.zn Excel VBA 1 August 4th, 2007 05:06 PM
To Import pictures in a flash movie at RUN Time abdullahalivu Flash (all versions) 1 March 12th, 2004 10:52 AM
Pages not viewing properly stu9820 ASP.NET 1.0 and 1.1 Basics 2 August 21st, 2003 01:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.