stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
02/09/13 10:03 AM (12 years ago)

Resource entry already defined

I would have though I'd be over these by now. I deleted my app from package explorer and redownloaded compiled code. Put my Docs files and Drawable files in the downloaded folder. Then went to Eclipse and imported the Android project. But I get these errors: 2013-02-09 11:56:34 - BT_activity_root] res/drawable/abrasion.png:0: error: Resource entry abrasion is already defined. [2013-02-09 11:56:34 - BT_activity_root] res/drawable/abrasion.jpg:0: Originally defined here. [2013-02-09 11:56:34 - BT_activity_root] res/drawable/abrasionlarge.png:0: error: Resource entry abrasionlarge is already defined. [2013-02-09 11:56:34 - BT_activity_root] res/drawable/abrasionlarge.jpg:0: Originally defined here. [2013-02-09 11:56:34 - BT_activity_root] res/drawable/redreflex.png:0: error: Resource entry redreflex is already defined. [2013-02-09 11:56:34 - BT_activity_root] res/drawable/redreflex.jpg:0: Originally defined here. [2013-02-09 11:56:34 - BT_activity_root] res/drawable/redreflexlarge.png:0: error: Resource entry redreflexlarge is already defined. [2013-02-09 11:56:34 - BT_activity_root] res/drawable/redreflexlarge.jpg:0: Originally defined here. [2013-02-09 11:56:35 - BT_activity_root] res/drawable/abrasion.png:0: error: Resource entry abrasion is already defined. [2013-02-09 11:56:35 - BT_activity_root] res/drawable/abrasion.jpg:0: Originally defined here. [2013-02-09 11:56:35 - BT_activity_root] res/drawable/abrasionlarge.png:0: error: Resource entry abrasionlarge is already defined. [2013-02-09 11:56:35 - BT_activity_root] res/drawable/abrasionlarge.jpg:0: Originally defined here. [2013-02-09 11:56:35 - BT_activity_root] res/drawable/redreflex.png:0: error: Resource entry redreflex is already defined. [2013-02-09 11:56:35 - BT_activity_root] res/drawable/redreflex.jpg:0: Originally defined here. [2013-02-09 11:56:35 - BT_activity_root] res/drawable/redreflexlarge.png:0: error: Resource entry redreflexlarge is already defined. [2013-02-09 11:56:35 - BT_activity_root] res/drawable/redreflexlarge.jpg:0: Originally defined here. I know these files were in a previous version, but I deleted the app. It was not there in package explorer before I imported. Now it does import to the usual name BT_activity_Root but again the previous one was deleted. How do I get around this? Thanks. Steve
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
02/09/13 11:21 AM (12 years ago)
Hey @stevek, Looks like at first glance, you have duplicates in your drawable folders. Also in Eclipse, change your image type from jpg to png. Eclipse handles png better. LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
02/09/13 12:22 PM (12 years ago)
LA, I went ahead and renamed the files Eclipse was having trouble with. It worked so I'm happy. Didn't see any duplicates.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
02/09/13 12:25 PM (12 years ago)
@stevek, It working now? LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
02/09/13 01:16 PM (12 years ago)
yes, but i had to rename. Though there were no duplicate files, Eclipse seems to think there are. Is there a way to search the workspace for files? I try to search function but it only seems to find text entries, not files. Steve
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
02/09/13 01:21 PM (12 years ago)
Not sure about the search @stevek. Well you know they are in the drawable folders, so not many files/images in there. You can open the drawable folders on your desktop or wherever they are located on your computer and do a search in there but shouldn't have to do a search. LA
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/09/13 02:05 PM (12 years ago)
Eclipse has been known to leave 'ghosts' around... hidden files in hidden directories that 'should' go away but sometimes don't. Don't have a solution, but you're not doing anything wrong. Cheers! -- Smug
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
02/09/13 02:06 PM (12 years ago)
@Smug, Very true! I call these false positives. LA
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.