You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
As the title described, I've just got Apple Sillicon M1 machine for development, and as usual, I install latest android studio: arctic fox, and also install the emulator. As Intel x86 emulator don't work on my machine, I tried arm64 emulator, it works when I install apk to the emulator and click run from android studio, but I can't install aab & apks with bundletool as usual, because bundletool can't seem to get the emulator device density.
I use system-images;android-31;google_apis;arm64-v8a system image.
even get-device-spec command won't work, so I can't install apks with --local-testing
Bundletool version(s) affected
Version: 1.8.0
Stacktrace
[BT:1.8.0] Error: Error retrieving device density. Please try again.
java.lang.IllegalStateException: Error retrieving device density. Please try again.
at com.google.common.base.Preconditions.checkState(Preconditions.java:508)
at com.android.tools.build.bundletool.device.DeviceAnalyzer.getDeviceSpec(DeviceAnalyzer.java:60)
at com.android.tools.build.bundletool.commands.GetDeviceSpecCommand.execute(GetDeviceSpecCommand.java:162)
at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:86)
at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:49)
To Reproduce
Well clearly, --install-apks doesn't work, but to reproduce it easier, get-device-spec also doesn't work, so I don't need to provide my aab, it seems like adb/emulator issue.
Describe the bug
As the title described, I've just got Apple Sillicon M1 machine for development, and as usual, I install latest android studio: arctic fox, and also install the emulator. As Intel x86 emulator don't work on my machine, I tried arm64 emulator, it works when I install apk to the emulator and click run from android studio, but I can't install aab & apks with bundletool as usual, because bundletool can't seem to get the emulator device density.
I use
system-images;android-31;google_apis;arm64-v8a
system image.even
get-device-spec
command won't work, so I can't install apks with--local-testing
Bundletool version(s) affected
Version: 1.8.0
Stacktrace
To Reproduce
Well clearly,
--install-apks
doesn't work, but to reproduce it easier,get-device-spec
also doesn't work, so I don't need to provide my aab, it seems like adb/emulator issue.Expected behavior
I can install normally like on my intel mac with x86 emulator
Known workaround
I haven't been able to install my aab unless I build and use universal apk
Environment:
OS: macOS Big Sur 11.2.3 (M1 2020)
The text was updated successfully, but these errors were encountered: