Download MonoDroid App on Android Market

I am trying to download an application in the Android Market. Below are the instructions that I use from the following website to prepare an application for sending:

http://android.xamarin.com/Documentation/Guides/Preparing_Package_for_Android_Marketplace

This next message is at the beginning of the instructions. But no instructions on how to add this to the AndroidManifest.xml file.

For the Android market to accept your application, it must define an application level icon. Ensure that such a line exists in your AndroidManifest.xml:

<application android:label="MyApplication" android:icon="@drawable/icon"> 

In a future release, support for this setting will be improved.

The very first element has a dead end because I get the following error when I try to load an application on the market.

"The icon path specified by the manifest is not in apk.

My question is, how can I add the application level icon operator to the manifest file?

Thanks.

ps The application is deployed both on the emulator and on the local Android device in debug and release modes without errors.

+4
source share
4 answers

You can add a manifest file to your project by raising the property pages for your project, going to the Manifest Manage tab and adding the link “add AndroidManifest.xml”.

Now in the "Properties" folder in your project should be a file called "AndroidManifest.xml".

Add the line specified in this file, replacing any existing item.

+1
source

I had the same problem and it had nothing to do with the icon. I had an application class (GlobalVars extends Applications) and it was defined in the manifest as different: <application android:name=".GlobalVars" /> I deleted it and added android:name="com.example.myapp.GlobalVars" in the application expression.

If this is an icon, you may have drawable-hdpi, -ldpi, -mdpi files and there is no folder available. Or you have a folder with a picture, but there is no icon in it.

+1
source

Can you post the corresponding snippet from the AndroidManifest.xml file? Whatever you use as the attribute android: icon ("@ drawable / icon" in the example) is what apk is looking for. You can install this manually in an XML file or using the wizard in the ADT plugin for Eclipse. If this is installed correctly, then you must have an icon.png file in one of your folders. If you don't have a .png icon, can you post the folder structure?

In the application that I uploaded to the market, I have the same attribute - @ drawable / icon - in my manifest, and therefore I must have the icon.png file in my project. In my case, I have three different icon.png files in my various drawable folders (res / drawable-hdpi, res / drawable-mdpi, res / drawable-ldpi). In your case, you need to at least have res / drawable / icon.png.

0
source

This error can also be generated if the xml manifest includes more than one <application> node.

0
source

All Articles