Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
530 views
in Technique[技术] by (71.8m points)

android studio emulator crashing after 3.0 update

I have been messing around with android studio and I ended up installing cocos2dx and using an arm cpu emulator to work with cocos2dx. I have recently seen a message prompting for an update for the android emulator service so I installed it and now my emulator crashes while trying to boot and gives this error in the logcat - this is the error it gave me

19:36   Emulator: **

19:36   Emulator: ERROR:/buildbot/src/android/emu-3.0-release/external/qemu/fpu/softfloat.c:486:round_canonical: code should not be reached

    19:36   Emulator: Warning: QObject::~QObject: Timers cannot be stopped from another thread ((null):0, (null))

    19:36   ADB rejected shell command (getprop): closed

    19:36   Emulator: Process finished with exit code 3

I have no idea what this means but I know it has something to do with the update I downloaded, is there any way to roll back the update maybe?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I've come across the same issue on Windows 10: the current version of Android Emulator (Nov 14, 2018: 28.0.16) crashes or freezes as soon as a virtual ARM device is started. When I start it from command line, it prints

Emulator: ERROR:/buildbot/src/android/emu-3.0-release/external/qemu/fpu/softfloat.c:486:round_canonical: code should not be reached

As a temporary solution, I downgraded the emulator to an older version and the problem disappeared.

Here you can find Android Emulator 27.2.9:

Steps to downgrade the emulator:

  1. Stop all instances of the emulator and close Android Studio;

  2. Open Android SDK directory. Its location can be found in the settings: Android Studio->File->Settings->Appearance & Behavior->System Settings->Android SDK->Android SDK Location;

  3. Move existing 'emulator' directory somewhere outside of Android SDK (if you just rename and leave it there, AVD Manager will find it and start using again);

  4. Unpack one of emulator-*-4266726.zip into the SDK directory;

  5. Launch Android Studio and don't update Android Emulator until it's fixed.

Related answer: How to downgrade Android Emulator


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...