Wrox Programmer Forums
|
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 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 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..
 
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





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 04: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 04:10 PM





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