Manifest has to have a label error

When I tryed to publish my android app (for Android 2.1) on I got an error wich says Manifest has to have label, but I have labels every where where I can put them.

So if someone can point me out where is problem please respond.

Here is my manifest.

<manifest package="com.jandans.silencer" android:versionCode="1" android:versionName="1.0" xmlns:android="" android:sharedUserLabel="@string/nosaukums"> <uses-sdk android:minSdkVersion="7"/> <uses-permission android:name="android.permission.ACCESS_SURFACE_FLINGER" /> <application android:label="Silent Mode" android:icon="@android:drawable/ic_lock_silent_mode" > <activity android:name=".Info" android:label="Silent mode"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <receiver android:name=".widgetprow" android:label="Silent Mode" android:icon="@android:drawable/ic_lock_silent_mode"> <intent-filter> <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> </intent-filter> <meta-data android:name="android.appwidget.provider" android:resource="@xml/hey" /> </receiver> <service android:name=".widgetprow$ToggleService" android:label="Silent Mode"/> </application>

-------------Problems Reply------------

It seems that the start tag <application contains the attribute android:icon that references to a resource prefixed with '@android:'. This breaks apk parser, thus the reason why you get the 'label' error when you attempt to upload your app.

Your <application start tag looks like this:

<application android:label="Silent Mode"

It should be fixed by replacing the reference prefix from '@android:drawable:" to "@drawable" (see below)

<application android:label="Silent Mode" android:icon="@drawable/ic_lock_silent_mode">

Hope this helps.

Might be tangentially related but in general its frowned upon using literal strings for android:label in application, activity, service, etc. It is allowed, however, but may throw warnings as they would rather you use something like "@string/KEY" for a resource under /res/values/SOMEFILE.xml where SOMEFILE is an xml file with the resources root tag and has a string specified for KEY. Typically SOMEFILE in this instance is strings.xml.

Main reason for this is for localization so you can provide a different name for say French users by simply providing a file with the same name but in /res/values-fr directory.

Category:android Views:0 Time:2012-03-04
Tags: android

Related post

  • Getting "invalid label" error in JQuery calling a WCF service 2009-06-26

    I'm uisng JQuery 1.3.2 and having problems with something that used to seem to work. I'm making a call to a WCF service in another domain. My call is hitting my service and getting back a valid JSON object, but I keep getting this "invalid label" err

  • Invalid Label Error with JSON request 2010-05-12

    I've read about this a lot and I just can't figure it out. It has nothing to do with MY code, it has to do with the feed or something because if I swap it with a Twitter feed it returns an Object object which is perfect. $.getJSON('http://rockbottom.

  • Response for JSONp request to youtube oembed call giving "invalid label" error 2010-08-23

    I am making a JSONp call to youtube using oembed and on response firebug gives "invalid label" error Here is my code site = ""; url = ""; $.getJSON("http://"+site+"/oembed?callback=?",{"format"

  • Jquery - Invalid label error 2010-10-13

    i get the error invalid label {"ok" : 1, "msg" : "Uh, we had a here now, thank you. How are you?"} my js code $.ajax({ url:"", success:function(data) { alert('Load was performed. '+data+''); }, dataType:'j

  • Javascript invalid label error 2011-06-02

    I am sorry if this question is a repeat of someother. I have looked into some of them but they don't answer my particular question. I get an "invalid label" error where I am printing my alert statement in the code below: $(document).ready( function()

  • Invalid Label error when consuming USA Today Census API 2011-08-28

    I'm trying to consume the USA Today Census API json service using jquery and jsonp. Here is the code: var url = "

  • If A Server Response to a JSONP request isn't properly wrapping the response in a function, is there any way to override the "invalid label" error? 2012-04-12

    So I'm trying to use $.JSON to grab and access the data from this url for a side project: As you can see from visiting it, it's a valid JSON object. So I do the following JSONP request using jQuery. $.g

  • INVALID LABEL error for JSON response against WFS request of Geoserver using Jquery 2009-10-01

    I wrote this code: function json() { var url=" topp:CELL_ID='410-07-301-31781' Or topp:CELL_ID='nnn'

  • json data returns invalid label error 2010-09-08

    I'm using Ajax file upload function with its javascript / jQuery library. When uploading a file, I keep getting this error message: SyntaxError: invalid label This is my JS script: jQuery('.uploadImage').live('click',function() { ajaxFileUpload(); })

  • jQueryUI - "invalid label" error in console 2010-09-29

    Getting a JS error when I load the following script: // increase the default animation speed to exaggerate the effect $.fx.speeds._default = 1000; $(function() { $( "#dialog" ).live('dialog',function() { autoOpen: false, show: "blind", hide: "explode

  • Using jQuery to get jsonp data returns invalid label error 2011-07-25

    I have been using jquery ajax method to get the json data. I have used both jQuery.getJSON and jquery.ajax methods but I keep getting the same error in my console. Invalid label meta I just want to display the some of the json data inside a div , is

  • Uncaught SyntaxError: Unexpected token : & invalid label errors 2011-12-19

    I am trying to make an ajax call and it returns something like, a JSON object; { id: 6, success: "true" } My ajax call is : window.foobar = function(foo){ $.ajax({ url: "", dataType: "jsonp", success: function (data) { ale

  • Label error word 2013 2013-08-19

    Hello, Recently I have ran into this problem with Word 2013. When clicking the label button at the top it pauses and kicks out the error "There is a problem with the label information you are trying to use. You may be able to correct the problem by r

  • 0x80070246 error when trying to install Vista Home Premium SP1. "Manifest Missing" and "Payload File Missing" errors in CheckSUR.log, when running System Update Readiness too. 2014-02-23

    I am getting 0x80070246 errors when trying to install SP1 for Vista Home Premium. After running the System Update Readiness Tool I found the following errors in my CheckSUR.log ======================================================= Checking System U

  • [CELLRANGE] PowerPoint Chart Label error 2014-05-20

    Hi there, I seem to have a problem with labels in Excel charts on PowerPoint. For some reason, on my computer the labels appear clearly. However, when sending the PowerPoint file over to somebody in a different country, they cannot read the labels an

  • File location - searching directories - Drive label error 2014-10-15

    Hi Windows 8.1PRo x64 Have several drives, however, the E drive where I store data is reporting the wrong drive location (see jpeg). Attempting to open the item location after doing a wildcard search *.* of any directory and sub directory results in

  • Generic Handler, JSONP and Invalid Label Error 2012-02-16

    I am trying to get some data from a generic handler on am externally hosted site (though this is our company's web site and server). I have to display the data returned from this handler. jQuery is successfully making call to the handler usin

  • Mail Merge Labels -Update Labels- error 2014-11-07

    I have Office 2007 Student version running in Vista. All service packs are up to date. When tring to populate labels with data in Mail Merge using " update Labels" the top row and bottom row receive data but nothing in between. I have tried both manu

  • Jquery Validation: Get rid of label tag for error 2010-01-20

    I'm having a hard time using jQuery Validation. In particular, I'm trying to remove the error message from the label tag and put it inside a div. I have 5 blocks of radio buttons. Each block looks like this: <div class="question-wrapper required"

Copyright (C), All Rights Reserved.

processed in 0.238 (s). 11 q(s)