If you distribute your app as an Android App Bundle (AAB), they contain all required files and so can be uploaded in a single command.
android-aab command extracts a given
.aab file and uploads any NDK symbol or Proguard mapping files to the appropriate upload API. See the
upload android-ndk and
upload android-proguard commands for details.
In addition to the symbol and mapping files, the command extracts version and build information, including your BugSnag API key, required for the upload from your app’s manifest file (
AndroidManifest.xml). These values can be overridden, or provided entirely, by command line options.
The simplest way to run the command is to provide the path to the
$ bugsnag-cli upload android-aab app/build/outputs/bundle/release/app-release.aab
The path to your NDK installation, used to access the
objcopy tool for extracting symbol information. This defaults to the path in the
$ANDROID_NDK_ROOT environment variable.
Your project’s API key. This defaults to the value of
com.bugsnag.android.API_KEY in your app’s manifest file, if found.
You can find your API key in Project Settings from your BugSnag dashboard.
The unique application ID, usually the package name, of the app. This defaults to the value of
Package in your app’s manifest file, if found.
A unique identifier for the build. This is only required if you have multiple mapping files with the same
versionCode. This same ID must also be set in the BugSnag configuration in your app, so that errors match the uploaded build. See Unique build identifiers for more information.
Used to see the files and options that would be uploaded without actually sending them to the BugSnag endpoint.
Whether to stop any further uploads if a file fails to upload successfully. By default the command attempts to upload all files.
Whether to ignore and overwrite existing uploads with same identifier. By default the command will fail if a matching file exists.
Path to strip from the beginning of source file names referenced in stacktraces when displayed as an error in your dashboard. This will default to your project’s root directory if the command has detected one, otherwise it’s empty.
The number of retry attempts before failing an upload. By default it is only attempted once.
The number of seconds to wait before failing an upload attempt. By default the upload is given 300s (5 mins).
The version code of this build of the app. This defaults to the value of
VersionCode in your app’s manifest file, if found.
The version of the app. This defaults to the value of
VersionName in your app’s manifest file, if found.