Android Question Android App Bundle

Stefano Di Chiano

Active Member
Licensed User
Hi,
I read that since August 2021 new apps must be uploaded with Android App Bundle and it is not possible to use apk anymore.
So, how can I produce an aab to upload with B4A?
 

Stefano Di Chiano

Active Member
Licensed User
When clicking on Project - Build App Bundle, I get the following error:
B4A Versione: 11.00
Analisi del Codice. (0.15s)
Java Versione: 8
Building folders structure. (0.03s)
Compilazione del codice. (0.15s)

File ObsucastorMap.txt creato nella cartella Objects.
Compilazione del codice di layouts (0.01s)
Organizzazione Librerie. (0.00s)
(Android Support Library)
Compiling resources (0.40s)
Linking resources Error
unknown option '--proto-format'.
aapt2 link [options] -o arg --manifest arg files...
Options:
-o arg Output path.
--manifest arg Path to the Android manifest to build.
-I arg Adds an Android APK to link against.
-A arg An assets directory to include in the APK. These are unprocessed.
-R arg Compilation unit to link, using `overlay` semantics.
The last conflicting resource given takes precedence.
--package-id arg Specify the package ID to use for this app. Must be greater or equal to
0x7f and can't be used with --static-lib or --shared-lib.
--java arg Directory in which to generate R.java.
--proguard arg Output file for generated Proguard rules.
--proguard-main-dex arg Output file for generated Proguard rules for the main dex.
--no-auto-version Disables automatic style and layout SDK versioning.
--no-version-vectors Disables automatic versioning of vector drawables. Use this only
when building with vector drawable support library.
--no-version-transitions Disables automatic versioning of transition resources. Use this only
when building with transition support library.
--no-resource-deduping Disables automatic deduping of resources with
identical values across compatible configurations.
--enable-sparse-encoding Enables encoding sparse entries using a binary search tree.
This decreases APK size at the cost of resource retrieval performance.
-x Legacy flag that specifies to use the package identifier 0x01.
-z Require localization of strings marked 'suggested'.
-c arg Comma separated list of configurations to include. The default
is all configurations.
--preferred-density arg Selects the closest matching density and strips out all others.
--product arg Comma separated list of product names to keep
--output-to-dir Outputs the APK contents to a directory specified by -o.
--no-xml-namespaces Removes XML namespace prefix and URI information from
AndroidManifest.xml and XML binaries in res/*.
--min-sdk-version arg Default minimum SDK version to use for AndroidManifest.xml.
--target-sdk-version arg Default target SDK version to use for AndroidManifest.xml.
--version-code arg Version code (integer) to inject into the AndroidManifest.xml if none is
present.
--version-name arg Version name to inject into the AndroidManifest.xml if none is present.
--shared-lib Generates a shared Android runtime library.
--static-lib Generate a static Android library.
--no-static-lib-packages Merge all library resources under the app's package.
--non-final-ids Generates R.java without the final modifier. This is implied when
--static-lib is specified.
--stable-ids arg File containing a list of name to ID mapping.
--emit-ids arg Emit a file at the given path with a list of name to ID mappings,
suitable for use with --stable-ids.
--private-symbols arg Package name to use when generating R.java for private symbols.
If not specified, public and private symbols will use the application's
package name.
--custom-package arg Custom Java package under which to generate R.java.
--extra-packages arg Generate the same R.java but with different package names.
--add-javadoc-annotation arg Adds a JavaDoc annotation to all generated Java classes.
--output-text-symbols arg Generates a text file containing the resource symbols of the R class in
the specified folder.
--auto-add-overlay Allows the addition of new resources in overlays without
<add-resource> tags.
--rename-manifest-package arg Renames the package in AndroidManifest.xml.
--rename-instrumentation-target-package arg Changes the name of the target package for instrumentation. Most useful
when used in conjunction with --rename-manifest-package.
-0 arg File extensions not to compress.
--split arg Split resources matching a set of configs out to a Split APK.
Syntax: path/to/output.apk:<config>[,<config>[...]].
On Windows, use a semicolon ';' separator instead.
-v Enables verbose logging.
-h Displays this help menu
What should I do?
 
Upvote 0

Stefano Di Chiano

Active Member
Licensed User
All right, I deleted the folder and download the components again. Then I changed the android.jar path with the new one. Now when I try to build app bundle I get this:
B4A Versione: 11.00
Analisi del Codice. (0.16s)
Java Versione: 8
Building folders structure. (0.04s)
Compilazione del codice. (0.17s)

File ObsucastorMap.txt creato nella cartella Objects.
Compilazione del codice di layouts (0.01s)
Organizzazione Librerie. (0.00s)
(AndroidX SDK)
Compiling resources (0.40s)
Linking resources (0.72s)
Compilazione del codice Java prodotto. (5.25s)
Conversione byte code - ottimizzazione dex. (2.01s)
Copia risorse delle librerie (0.14s)
Building app bundle (1.72s)
Signing AAB file Error

jarsigner error: java.security.SignatureException: private key algorithm is not compatible with signature algorithm
 
Upvote 0

Stefano Di Chiano

Active Member
Licensed User
I switched to java11 like suggested by a user in another thread I found here on the forum and it worked. I was able to make the AAB.
Thank you very much for the help.
 
Upvote 0
Top