Fixed
Status Update
Comments
ro...@google.com <ro...@google.com>
sh...@google.com <sh...@google.com>
ap...@google.com <ap...@google.com> #2
I have updated AS to version 4.1.3 and the android emulator to version 30.5.3.0. Now I can't use the emulator anymore. I have Mojave OS installed and I confirm the same message described in previous post. The file does not exist in the file system.
sh...@google.com <sh...@google.com> #3
As a workaround, I was able to successfully downgrade android emulator to 28.
See:
I downloaded 28.0.25.0 (build_id 5395263) from here:
I deleted everything EXCEPT package.xml from
$HOME/Library/Android/sdk/emulator/
and replaced them with the contents of the extracted zip file.
Finally, make sure your AVD system image is NOT running api 30.
sdkmanager "system-images;android-27;google_apis_playstore;x86"
System images higher than api 29 are using a kernel format that the older emulator cannot understand.
Here's a workaround script you can try:
cd ~
mkdir emulator_downgrade
cd emulator_downgrade
wget https://dl.google.com/android/repository/emulator-darwin-5395263.zip
unzip emulator-darwin-5395263.zip
mv ~/Library/Android/sdk/emulator ~/Library/Android/sdk/previous-emulator
mv emulator ~/Library/Android/sdk/emulator
cp ~/Library/Android/sdk/previous-emulator/package.xml
~/Library/Android/sdk/emulator/package.xml
cd ~
~/Library/Android/sdk/emulator/emulator -version
~/Library/Android/sdk/emulator/emulator -list-avds
ji...@gmail.com <ji...@gmail.com> #4
Thank you for the downgrade explanation. If you want to use a more recent emulator 30.1.5 the build number is 6855416. I believe you can use this build with API 30 images without issues.
Description
Library version used: 1.0.0-rc01(same for beta01) Devices/Android versions reproduced on: Pixel 5/11 Android Auto version reproduced on: 6.1.610544-release
I have a Screen that observes a LiveData, and pops itself when some condition meets. The observer will run on start, so the screen will also be popped on start.
The above code works well. However, when I add a
LifecycleObserver
to the screen's lifecycle, the app crashes.Stack trace: