问题
I have an app bundle file, now I want to generate a universal APK that can be installed to all devices. I have tried to use this command to generate universal APK:
$bundletool build-apks --bundle=myapp_bundle.abb --output=myapp.apks --universal
However, what I got is .apks (not .apk) where I cannot install directly to any devices. Anyone know how to get a universal .apk file instead of .apks?
Thank you very much.
回答1:
Use either the extract-apks
or the install-apks
command to respectively extract the APK from the APK Set to a directory, or install them on a connected device.
Alternatively, just unzip the .apks using your favourite zip tool. But that might not always work in the future.
来源:https://stackoverflow.com/questions/50616544/generate-universal-apk-from-android-app-bundle