Wrox Programmer Forums
|
BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2
This is the forum to discuss the Wrox book Professional Android Application Development by Reto Meier; ISBN: 9780470344712
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 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 22nd, 2010, 12:52 PM
Registered User
 
Join Date: Jul 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Code examples import without Android library

My apologies if this is a stupid newbie question...

I'm using Eclipse (Heios Release) and have the Android SDK all configured as per the developer.android.com recommendations. I can create and run new projects without any problem but I can't import one of this book's code samples using Import > Existing Projects Into Workspace.

Importing a zip creates a project but it doesn't create it as an Android project and the console displays the error: "Project has no default.properties file! Edit the project properties to set one."

I've tried going into the project Properties but as soon as I click on 'Android' in the properties tree a pop-up appears saying "Could Not Accept Changes: The currently displayed page contains invalid values"

See: http://screencast.com/t/ZmY3ZWQ4

But if I do this on one of my own projects I have no such error, and I'm able to change things such as the Android Platform/API level.
Any help would be really appreciated!
 
Old July 26th, 2010, 07:07 AM
Registered User
 
Join Date: Jul 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Resolved

This was answered for me on Stack Overflow:
http://stackoverflow.com/questions/3...s-into-eclipse

"All the baseline default.properties needs is a line like:

target=android-8"

You can copy another projects' default.properties into your project (choose one with the same API Level that you want). Then restart of Eclipse to rebuild the workspace.

NB you may find that your src folder includes a R.java file. You need to delete this as it is automatically created in the gen. Having two copies will generate an error.





Similar Threads
Thread Thread Starter Forum Replies Last Post
CSV Import library for Products Guerra BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 7 August 5th, 2009 09:55 PM
com.google.android.maps library unavailable lz1234 BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 1 June 7th, 2009 10:18 AM
code for examples marciann BOOK: Access 2003 VBA Programmer's Reference 3 February 20th, 2005 07:35 PM





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