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: Professional Android Programming with Mono for Android and .NET/C#
This is the forum to discuss the Wrox book Professional Android Programming with Mono for Android and .NET/C# by Wallace B. McClure, Nathan Blevins, John J. Croft, IV, Jonathan Dick, Chris Hardy ; ISBN: 978-1-1180-2643-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android Programming with Mono for Android and .NET/C# 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
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 24th, 2012, 01:33 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Duplicate class error in code

Hi I have been looking at the code base of working with databases. To get an idea on why my code was not working, stopped on the connection, I thought I would step through the code provided in the book download. Frustratingly I cannot get the code to run as I have a duplicated class error. I have googled the erreo but it would appear that there is nothing obvious on the net. The error is:
duplicate class: internalnetworkdata.internalnetworkdata.R public final class R{ File: R.java line 10

Has anyone else come across this issue and has resolution. I cannot see where any calss has been duplicated and I can only think that it is in the Java engine which I know very little about.
  #2 (permalink)  
Old September 24th, 2012, 02:54 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default

I just started reading this book so I can't give you an answer, but maybe I can offer a suggestion. Try doing a clean and full rebuild of the solution. (Introduction pg xxviii). Hope that helps!

EDIT: I experienced the same error building one of the samples from chapter 4. Clean and rebuild corrected the issue.

For those who may not know how to perform the appropriate action:
Confirm you are in Debug configuration (usually a drop down selection on the menu at the top of the screen).
In solution explorer (View -> Solution Explorer) right click on the solution.
Click "Clean Solution".
When that completes click "Rebuild Solution".

After that you should be able to proceed as usual.

Last edited by bhall066; September 24th, 2012 at 06:14 PM.
The Following User Says Thank You to bhall066 For This Useful Post:
vbboyd (November 27th, 2012)
  #3 (permalink)  
Old November 27th, 2012, 06:22 PM
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default

Quote:
Originally Posted by bhall066 View Post
I just started reading this book so I can't give you an answer, but maybe I can offer a suggestion. Try doing a clean and full rebuild of the solution. (Introduction pg xxviii). Hope that helps!

EDIT: I experienced the same error building one of the samples from chapter 4. Clean and rebuild corrected the issue.

For those who may not know how to perform the appropriate action:
Confirm you are in Debug configuration (usually a drop down selection on the menu at the top of the screen).
In solution explorer (View -> Solution Explorer) right click on the solution.
Click "Clean Solution".
When that completes click "Rebuild Solution".

After that you should be able to proceed as usual.
Outstanding!!! That fixed all of the problems. Maybe the author should print some definition of this in his errata section of his book. It is good now I can use the book and follow through on the rest of the book that was crapping out on me. I was about ready to go to a different text book, but now it looks like I can use this book instead.
 


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
Error in C# Source Code - SiteMapEntities class ltimms BOOK: ASP.NET Website Programming Problem-Design-Solution 0 March 22nd, 2012 04:00 PM
VBA code to create duplicate lines jeskit Excel VBA 0 December 20th, 2011 09:48 AM
Ch14;get Class not register error with Code Example clay5050 BOOK: Beginning C# 3.0 : An Introduction to Object Oriented Programming ISBN: 978-0-470-26129-3 5 December 23rd, 2009 06:17 AM
Duplicate Error Message Stopping it ru1 Access 2 February 25th, 2005 03:53 PM
No Duplicate Records Error crapanz PHP Databases 0 September 28th, 2004 07:31 PM



All times are GMT -4. The time now is 03:49 AM.


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