Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Android Application Development
This is the forum to discuss the Wrox book Beginning Android Application Development by Wei-Meng Lee; ISBN: 978-1-1180-1711-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Android Application Development section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 27th, 2011, 04:08 PM
Registered User
 
Join Date: Jul 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sample code won't compile

I'm trying to load a sample from the book in Eclipse SDK 3.6.2

The book notes that newer versions of the tools may require modification to the source files in order to work. I'm fairly sure this is what is occuring. Creating the sample from scratch compiles and runs perfectly.

If I can be shown what steps are taken using the first sample code in order to make it compatable with the latest and greatest Eclipse version, I can take it from there modifying the other samples.

Many thanks!!!

File->New->Project->->Android->Android Project->Create Project from existing source->Chapter 1->HelloWorld

I get the following in the console:

[2011-07-27 11:36:25 - com.android.ide.eclipse.adt.internal.project.Andro idManifestHelper] Unable to read C:\PROGRA~2\Android\android-sdk\AndroidManifest.xml: java.io.FileNotFoundException: C:\PROGRA~2\Android\android-sdk\AndroidManifest.xml (The system cannot find the file specified)
[2011-07-27 11:43:05 - com.android.ide.eclipse.adt.internal.project.Andro idManifestHelper] Unable to read C:\Users\dlmanki\Documents\Android\Development\Wro x Begjnning Android Application Development\Chapter 1\AndroidManifest.xml: java.io.FileNotFoundException: C:\Users\dlmanki\Documents\Android\Development\Wro x Begjnning Android Application Development\Chapter 1\AndroidManifest.xml (The system cannot find the file specified)
[2011-07-27 11:52:12 - com.android.ide.eclipse.adt.internal.project.Andro idManifestHelper] Unable to read C:\Users\dlmanki\workspace\HelloWorld\AndroidManif est.xml: org.eclipse.core.internal.resources.ResourceExcept ion: Resource is out of sync with the file system: '/HelloWorld/AndroidManifest.xml'.
[2011-07-27 11:52:12 - HelloWorld] AndroidManifest.xml does not declare a Java package: Build aborted.

Last edited by Fooser; July 27th, 2011 at 04:46 PM.
Reply With Quote
  #2 (permalink)  
Old July 27th, 2011, 05:02 PM
Registered User
 
Join Date: Jul 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Working now... go figure.

The sample code is working now. I used Import, which I had tried several times before and didn't seem to succeed. I guess I wasn't holding my mouth just right....

Fooser
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to compile the source code?! makeit_quick BOOK: Professional Android 2 Application Development 1 December 10th, 2010 03:31 PM
BeerHouse Source Code does not compile!!!!!???? rsam BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 0 June 29th, 2010 02:46 PM
Chapter 18 code won't compile warlock7 Visual C++ 2005 0 January 18th, 2007 03:10 PM



All times are GMT -4. The time now is 07:53 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.