Error text
Error: cannot install .aab directly. / bundletool: Unable to find a device matching the spec / The APKs archive is signed with the debug key
Error: cannot install .aab directly. / bundletool: Unable to find a device matching the spec / The APKs archive is signed with the debug key
An AAB is meant for Play and cannot be installed on a phone directly. You must turn it into an APK set with bundletool.
bundletool and make sure Java is installed..apks with build-apks; give your own keystore for signing.install-apks --apks=app.apks.--mode=universal.adb devices.bundletool build-apks --bundle=app.aab --output=app.apks --ks=release.jks --ks-key-alias=release bundletool install-apks --apks=app.apks bundletool build-apks --bundle=app.aab --output=app.apks --mode=universal unzip app.apks -d out
Keep the AAB for distribution and a universal APK for internal testing.
Author and license: Nibras Code