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

2 issues

  1. Is it possible to release ‘.aab’?

  2. ‘.apk’ release error

  3. In order to release Android, ‘.aab’ file is required. Is it possible with a ‘processing’ program?

  4. ‘.apk’ is created through debugging, but an error occurs when released.

  • Android mode : 4.2.1
  • Processing : 3.5.4

Please help me.~

@GWAK I want to be certain that you have tried to run File/Export AndroidProject.


On a Mac I had to delete the uses-sdk android:minSdkVersion entire line in the manifest in order to get it to run. https://discourse.processing.org/t/specific-icon-generator-for-processing-android-project/31989

1 Like

<uses-sdk android:minSdkVersion="15" android:targetSdkVersion="29"/>
<uses-sdk android:targetSdkVersion="29"/>


On a Mac I had to delete the entire line. I initially tried what you did and only removed the minSdkVersion but that failed and the only way I could get it to run was delete the whole line.

1 Like

Dear svan,
As you said, it works fine after ‘delete’.
thank you. very very thanks.
Do you know how to output ‘.aab’ ?

@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.

@svan @GWAK
AAB refers to Android App Bundles. As of now the only way to distribute App is to upload AAB files on Play Console. Earlier APK were uploadable.
I am not sure if we can create AAB from an APK. But I was able to create a Universal APK from the AAB file with the help of the Bundle Tool.

A Pull Request is in review to provide the “Export Signed Bundle” feature. The chances are we can see the feature in the upcoming days.

It is not officially merged in processing for android but you can test the branch by building it with wiki instructions given in the Processing for Android repository, which can be a lengthy process for a user.

For generating bundle now, I would suggest following the following steps:

  • Export Project from PDE with android mode.

  • Now you need to remove the SDK version lines in the manifest as it creates issues while signing( more info in the current thread).

  • Here there are two ways to open the project in Android studio. Either you can open the project directly or if it does not work properly due to Gradle version compatibilities you can create a new project in Android studio with the necessary project ID (i.e com.example.project) and then you can start replacing the folders such as java, resources, libs, asset, manifest file, etc from exported project to the newly created project in android studio.

  • At this point, if the files are replaced properly you can create signed bundles in Android Studio by signing with the existing Keystore or newly created keystore. In case the App is already published and you want to release an update you need to use the same Keystore file by which you signed the app earlier. Otherwise, you may face a publishing error while uploading the app on the play console. It would also be possible to use Keystore from PDE in Android Studio to sign APK or Bundles.

Rupesh Kumar

1 Like


Thank you so much for your reply.

But there is a problem.

  1. First of all, I have never played Android Studio.

  2. A person who makes APPs simply with ‘processing Android’.

  3. Do you have a schedule to perform the ‘.aab export’ function as a ‘processing program’?

I will wait for your reply.

thank you.

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:

gradle bundleRelease

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

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

as mentioned in detail in this thread

Rupesh Kumar

1 Like


gradle bundleRelease

Genius teacher, thank you so much for your reply.
Where should I add that command?
I see what you’re talking about. But can you tell me how to add it?
I would appreciate it if you could tell me how to add ‘gradle bundleRelease’.