Wrox Programmer Forums
| 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 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
  #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, 07: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.


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 10: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 07:17 AM
Duplicate Error Message Stopping it ru1 Access 2 February 25th, 2005 04:53 PM
No Duplicate Records Error crapanz PHP Databases 0 September 28th, 2004 07:31 PM





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