# \[Android\] \[2 issues\] 1) Is it possible to release '.aab'? 2) '.apk' release error

**URL:** <https://discourse.processing.org/t/android-2-issues-1-is-it-possible-to-release-aab-2-apk-release-error/33295>\
**Category:** Processing for Android\
**Created:** [November 3, 2021, 11:07pm UTC](https://discourse.processing.org/t/android-2-issues-1-is-it-possible-to-release-aab-2-apk-release-error/33295 "2021-11-03T23:07:42Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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 20, 2021, 8:41pm UTC](https://discourse.processing.org/t/android-2-issues-1-is-it-possible-to-release-aab-2-apk-release-error/33295/9 "2021-11-20T20:41:49Z")

</div>

Hi @GWAK  
Earlier I was involved in some other work so was not able to reply. You can download and set Gradle as an environment variable. There are various ways to set the environment variables for various operating systems. The process would be quite similar to setup java in the system. After you would be able to use Gradle commands on the command line, you can export the project and navigate to the exported project’s folder in terminal or cmd based on your system. Now you can try to run the following command:

```auto

gradle bundleRelease

```

after that, the bundle would be generated at this location as

```auto

/sketchbook/project_name/android/app/build/outputs/bundle/release as “app-release.aab”

```

as mentioned in detail in this thread

> [@How to create Android app bundle?](https://discourse.processing.org/t/how-to-create-android-app-bundle/26592/6):
>
> 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 t…

Thanks,  
Rupesh Kumar

---

_[View the full topic](https://discourse.processing.org/t/android-2-issues-1-is-it-possible-to-release-aab-2-apk-release-error/33295)._
