Strange compile error in AndroidManifest.xml

With a few android projects in Eclipse I get compile error in AndroidManifest.xml every time I restart Eclipse. Errors are something like:

Description    Resource    Path    Location    Type
error: Error: No resource found that matches the given name (at 'label' with value '@string/share_name').    AndroidManifest.xml    /MobiwsaleAdmin    line 37    Android AAPT Problem

This project is done with PhoneGap and it includes also Barcode Scanner activities in AndroidManifest.xml. This error does not looks valid at all and compile error is resolved as a workaround by adding space somewhere, saving/recompiling and removing space saving/recompiling again. Result was exactly same as before but no compile error in this case.

Permanent solution was to remove such commented line from AndroidManifest.xml. It looks like commenting out is not perfect in AndroidManifest.xml file.

        <!-- android:label="@string/share_name" -->


Leave a Reply

Your email address will not be published.