I have created an Emulator using android 7.1.1 (API 25) CPU X86. When I start the emulator its showing pixel launcher keeps stopping
issue. I have checked with CPU x86_64 also but same issue.
Here is the screenshot:
Here is my details config:
EDIT
It seems like the issue is solved in Android Studio 2.2.3. If for some reason you still see this problem, the solution below works.
Original answer
I found a reasonable solution for now. The problem is mainly in the launcher, not the emulator itself. So installing a different launcher can fix the issue. I installed the GO launcher from here: http://www.appsapk.com/go-launcher-ex/
Just drag and drop the apk on the emulator and install it, then tell the OS to use it as default.
I am not sure if this specific apk is a legal copy of the apk, but anyway it solves the issue for me and there are many launchers out there
good luck.
clearing launcher app data may help
adb shell pm clear com.google.android.apps.nexuslauncher
I was able to fix this by turning off "App suggestions" in the Pixel Launcher Settings. You can open the settings panel with this command:
adb shell am start com.google.android.apps.nexuslauncher/.SettingsActivity
Some good suggestions above but I found out that it was crashing for me because the HAXM RAM specified was more than the AVD RAM.
I started getting the pixel launcher crash after I updated to the latest emulator version (26.1.2) and to the latest HAXM version (6.0.6). By default the HAXM RAM was set to 2GB and the RAM allocated to my virtual device was 1536MB. After I updated the HAXM RAM to 1GB I stopped getting the pixel launcher crashes.
To update the HAXM RAM you will need to run the HAXM installer again. Refer to this link HAXM configuration in android studio
it worked for me to simply clean the project
After one day of troubleshooting this issue, I just deleted the emulator and created another one with a different name. Now it working but still very slow. maybe I have to upgrade my laptop.
来源:https://stackoverflow.com/questions/40740367/pixel-launcher-keeps-stopping-issue-in-android-7-1-1-api-25-emulator