hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
08/17/12 08:54 AM (13 years ago)

Error message in Eclipse

So I have the below error in my manifest which with it does not allow me to start my emulator. I recently attempted to add an activity to create a bar code scanner for my app. I am not sure if this has anything to do with it. Can anyone please advise. Thank you. Howard <!-- recommneded device features --> <uses-feature android:name="android.hardware.camera" android:required="false"/> <uses-feature android:name="android.hardware.location" android:required="false"/> <uses-feature android:name="android.hardware.location.gps" android:required="false"/> <uses-feature android:name="android.hardware.telephony" android:required="false"/> When I hover over the red "x" the description of the error is: error: No resource identifier found for attribute 'required' in package 'android'
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/17/12 09:12 AM (13 years ago)
Hi Howard, Is it failing on this section in particular, or the overall AndroidManifest.xml file? The section you have above is standard for the buzztouch download...did you modify it at all? Maybe because the ZXing stuff requires a camera, that you need to set android:required=true for android.hardware.camera? Mark
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
08/17/12 10:54 AM (13 years ago)
I didn't modify it, just didn't copy into the forum correctly with the quotation marks and so on. I did try to change the camera from false to true, but that did not help. All 4 lines are errored meaning has the red x next to it.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/17/12 10:57 AM (13 years ago)
Very strange! Those are pretty standard statements, so they're likely to work unless something else is amiss. Try backing out the other statements you added to the file to see if that changes the error you get. Then you'll at least know it's related to the new content. Mark
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
08/17/12 10:59 AM (13 years ago)
Most likely you're missing a " somewhere. Fred
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/17/12 11:01 AM (13 years ago)
Except that he's saying he didn't change that section, which makes me think it's related to the other stuff he added! Perhaps a missing closed tag, or perhaps a quote as you suggest.
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
08/17/12 11:02 AM (13 years ago)
Sorry Mark, forgot to say hello and thanks! :p-)
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
08/17/12 11:08 AM (13 years ago)
Hi thanks for the reply's and suggestions: I tried to remove the new activity that I added to add the bar code scanner and did not resolve the errors, but I am not 100% sure if the errors were they prior to the insert of the new activity. The interesting thing, is the "copy" of the manifest within the RES folder which is within the BIN folder is free of errors. Does that mean anything? Thanks, Howard
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
08/17/12 11:15 AM (13 years ago)
Not sure if this was seen but the error it is stating is: error: No resource identifier found for attribute 'required' in package 'android'
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/17/12 11:27 AM (13 years ago)
The stuff in the bin folder doesn't get generated until you compile your app. If you look in the zipped version of your download package, you'll see there's nothing in there. So, it must get copied over. 'bin' generally stands for 'binary,' as in the executable package. So, it makes sense it gets generated during compile time. I'd suggest first doing a Project...Clean from the menu bar, and seeing if that clears things up. If not, copy the manifest file from your zip download package and put replace your current copy with it. Then see what happens. Mark
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
08/17/12 11:45 AM (13 years ago)
I tried the clean first, and I still have the errors, but now this yield sign with an exclamation mark is at the top with error: Attribute minSdkVersion (8) is higher than the project target API level (4) Howard
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/17/12 11:48 AM (13 years ago)
Looks like you have the API version set to Google API4, and you need at least Google API8. Right-click on the project in Package Explorer...select Properties, then Android, and make the change. That should at least fix that error. Mark
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
08/17/12 11:53 AM (13 years ago)
Wow, I think we are getting closer! :-) That cleared the yield sign, ALSO the errors, but now I have a yellow error on the right top with the error: No grammar constraints (DTD or XML schema) detected for the document. Are we there yet! :-) howard
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/17/12 12:06 PM (13 years ago)
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
08/17/12 12:08 PM (13 years ago)
Hey Mark! So I think it is the whole xzing project that is causing the errors. Within that project all the src-com.google.zxing.client.android have errors. If I close that project, then all the SRC for my main project has errors. I think I might be past the point of no return!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/17/12 01:18 PM (13 years ago)
I think you're right. That's kinda the point I was at earlier in the week with the ZXing stuff as well. Hopefully I can give it a go this weekend. Mark
 

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.