p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional Android Programming with Mono for Android and .NET/C# (http://p2p.wrox.com/forumdisplay.php?f=677)
-   -   Duplicate class error in code (http://p2p.wrox.com/showthread.php?t=88496)

markdmurray September 24th, 2012 01:33 AM

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.

bhall066 September 24th, 2012 02:54 PM

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.

vbboyd November 27th, 2012 07:22 PM

Quote:

Originally Posted by bhall066 (Post 286979)
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.


All times are GMT -4. The time now is 11:03 PM.

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