# How to create Android app bundle?

**URL:** https://discourse.processing.org/t/how-to-create-android-app-bundle/26592
**Category:** Processing for Android
**Created:** [December 29, 2020, 6:44pm UTC](https://discourse.processing.org/t/how-to-create-android-app-bundle/26592 "2020-12-29T18:44:54Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![gio93](https://avatars.discourse-cdn.com/v4/letter/g/7bcc69/32.png) [@gio93](https://discourse.processing.org/u/gio93)
#### Post date: [December 29, 2020, 6:44pm UTC](https://discourse.processing.org/t/how-to-create-android-app-bundle/26592/1 "2020-12-29T18:44:54Z")

</div>

how to create android app bundle?

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [December 29, 2020, 6:53pm UTC](https://discourse.processing.org/t/how-to-create-android-app-bundle/26592/2 "2020-12-29T18:53:50Z")

</div>

Hi, @gio93 Do you mean [this](https://developer.android.com/platform/technology/app-bundle)?

---

<div class="post-metadata">

### Author: ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)
#### Post date: [December 30, 2020, 6:16pm UTC](https://discourse.processing.org/t/how-to-create-android-app-bundle/26592/3 "2020-12-30T18:16:12Z")

</div>

@gio93 === if yes to @noel i am afraid that you need Android studio for that

---

<div class="post-metadata">

### Author: ![gio93](https://avatars.discourse-cdn.com/v4/letter/g/7bcc69/32.png) [@gio93](https://discourse.processing.org/u/gio93)
#### Post date: [January 2, 2021, 8:26pm UTC](https://discourse.processing.org/t/how-to-create-android-app-bundle/26592/4 "2021-01-02T20:26:12Z")

</div>

yes I mean that thank you very much

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [January 2, 2021, 8:35pm UTC](https://discourse.processing.org/t/how-to-create-android-app-bundle/26592/5 "2021-01-02T20:35:01Z")

</div>

> [@akenaton](#):
>
> i am afraid that you need Android studio for that

…

---

<div class="post-metadata">

### Author: ![pettypace](https://avatars.discourse-cdn.com/v4/letter/p/cdc98d/32.png) [@pettypace](https://discourse.processing.org/u/pettypace)
#### Post date: [October 2, 2021, 9:26pm UTC](https://discourse.processing.org/t/how-to-create-android-app-bundle/26592/6 "2021-10-02T21:26:19Z")

</div>

You don’t actually “need” A-S. This worked for me with Processing 3:

- From processing do File → Export Android Project
- Go to the sketchbook/project\_name/android directory and do _sudo mkdir ./gradle_
- cd to the new gradle directory and do _sudo cp -r …/wrapper ./_ ’
- Then back up to the …/android directory and do _sudo ./gradlew bundleRelease_
- The bundle should show up here: _/sketchbook/project\_name/android/app/build/outputs/bundle/release_ as “app-release.aab”

Although you don’t “need” A-S, I got the hint to change the directory structure by noting how A-S differed from processing.

Another problem in getting a processing sketch to the play store is that google now requires API 30 and will not upload a processing 3 bundle that targets API 29. The workaround for that was to change “29” to “30” in the build.gradle file in the “app” directory just before the bundling suggested above. Note that processing will change it back to “29” given half a chance.

And don’t forget to sign the bundle before trying to upload to the play store.

\*\*Note: the text editor seems to be putting extra dots in the 3rd and 4th bullets above. In bullet 3, it should be DOT DOT SLASH wrapper. In bullet 4 it should be DOT DOT SLASH android \*\*

---

<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: [October 6, 2021, 5:07pm UTC](https://discourse.processing.org/t/how-to-create-android-app-bundle/26592/7 "2021-10-06T17:07:49Z")

</div>

@pettypace - I greatly appreciate your efforts to elucidate this. I was doing pretty well until I got down to bullet no. 3 and it was time to do the copy of the wrapper. I notice that your post has a stray single quote at the end of the line which likely is a typo. I tried with and without the single quote but neither went through. Without the quote I got the error message shown below. I am doing this on a Mac if that makes any difference.

 ![error](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/be7658da9b7648fa78b7c3782cfe49249c10b46d.png)

---

<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: [October 6, 2021, 6:52pm UTC](https://discourse.processing.org/t/how-to-create-android-app-bundle/26592/9 "2021-10-06T18:52:47Z")

</div>

@pettypace Turns out there is a problem using Terminal on Macs with BigSur OS and you have to do this to avoid ‘operation not permitted’ errors:

[https://osxdaily.com/2018/10/09/fix-operation-not-permitted-terminal-error-macos/](https://osxdaily.com/2018/10/09/fix-operation-not-permitted-terminal-error-macos/)

Still get an error when trying to build the bundle, but getting closer.

---

<div class="post-metadata">

### Author: ![Rupesh\_Kumar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/rupesh_kumar/32/12638_2.png) [@Rupesh\_Kumar](https://discourse.processing.org/u/Rupesh_Kumar)
#### Post date: [November 8, 2021, 4:49pm UTC](https://discourse.processing.org/t/how-to-create-android-app-bundle/26592/10 "2021-11-08T16:49:32Z")

</div>

Some information on Bundle Generation and using PDE Android Exported project in Android Studio.

> [@\[Android\] \[2 issues\] 1) Is it possible to release '.aab'? 2) '.apk' release error](https://discourse.processing.org/t/android-2-issues-1-is-it-possible-to-release-aab-2-apk-release-error/33295/6):
>
> @GWAK I’m having trouble remembering what ‘.aab’ does. @Rupesh_Kumar or someone else might know. Perhaps start a new thread with your second question if it doesn’t get answered here.
