# I can't export my first Android program

**URL:** <https://discourse.processing.org/t/i-cant-export-my-first-android-program/42505>\
**Category:** Processing for Android\
**Created:** [July 26, 2023, 4:38pm UTC](https://discourse.processing.org/t/i-cant-export-my-first-android-program/42505 "2023-07-26T16:38:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fsdonato](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/fsdonato/32/18621_2.png) [@fsdonato](https://discourse.processing.org/u/fsdonato)\
**Post date:** [July 26, 2023, 4:38pm UTC](https://discourse.processing.org/t/i-cant-export-my-first-android-program/42505/1 "2023-07-26T16:38:09Z")

</div>

I’m doing the following code in Processin 4, Android mode:

```auto
 void setup() {
 }
 
 void draw() {
         ellipse(mouseX, mouseY, mouseX-pmouseX, mouseY-pmouseY);
 }

```

The code works, it runs on the Smartphone.  
But I am not able to export to an .apk file  
File → Export Signed Package  
My AndroidManifest.xml:

```auto
<?xml version="1.0" encoding="UTF-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="android.test">
    <application android:icon="@mipmap/ic_launcher" android:label="">
        <activity android:exported="true" android:name=".MainActivity" android:theme="@style/Theme.AppCompat.Light.NoActionBar.FullScreen">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
    </application>
</manifest>

```

And the error:

> The sketch does not include all required app icons. Processing could use its default set of Android icons, which are okay to test the app on your device, but a bad idea to distribute it on the Play store. Create a full set of unique icons for your app, and copy them into the sketch folder. Once you have done that, try exporting the sketch again.

What folder should I put my icons in? Is the name correct? How should the manifest file look? I’m a beginner.  
Below is the image of my icons.

 ![2](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/7/2/72c549ec5676d89776da0a705b4be1a5f72493ab.jpeg)

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [July 26, 2023, 6:22pm UTC](https://discourse.processing.org/t/i-cant-export-my-first-android-program/42505/2 "2023-07-26T18:22:26Z")

</div>

Have you seen this: [https://android.processing.org/tutorials/distributing/index.html](https://android.processing.org/tutorials/distributing/index.html)

Icons may be placed in the sketch folder. No need to use ‘Icons’ folder. Try renaming icons to ‘icon-36.png’, etc if you still can’t get it to work.

---

<div class="post-metadata">

**Author:** ![fsdonato](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/fsdonato/32/18621_2.png) [@fsdonato](https://discourse.processing.org/u/fsdonato)\
**Post date:** [July 26, 2023, 6:48pm UTC](https://discourse.processing.org/t/i-cant-export-my-first-android-program/42505/3 "2023-07-26T18:48:51Z")

</div>

Does not work. I think you have to make some changes to the line:

```auto
<application android:icon="@mipmap/ic_launcher" android:label="">

```

 ![1](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/f/c/fccb90a40d90ebfd2ad33c513d6df3c317217a3c.jpeg)

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [July 26, 2023, 7:08pm UTC](https://discourse.processing.org/t/i-cant-export-my-first-android-program/42505/4 "2023-07-26T19:08:18Z")

</div>

Try changing the names of the icons as previously suggested.

---

<div class="post-metadata">

**Author:** ![fsdonato](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/fsdonato/32/18621_2.png) [@fsdonato](https://discourse.processing.org/u/fsdonato)\
**Post date:** [July 26, 2023, 7:27pm UTC](https://discourse.processing.org/t/i-cant-export-my-first-android-program/42505/5 "2023-07-26T19:27:52Z")

</div>

It worked! THANKS!  
Solution:  
In the AndroidManifest.xml file put the name of your program.  
Then you need icons in the root folder of the sketch with the names: icon-36.png, icon-48.png… up to icon-192.png in addition to the files preview\_rectangular.png and preview\_circular.png  
With this the program can be exported to an .apk file.

 ![2](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/a/c/acf27d419c614d8c509ba546b0f23efae9e44932.jpeg)
