Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do I get this GRPC Error "WARNING: EmulatorService.cpp:448: Cannot find certfile" when I start the emulator?

Tags:

grpc

Invalidate and Restart option in Android Studio, followed by gradle clean, and manually uninstalling the application from the emulator finally worked for me. Individually, they didn't for whatever reason.

I tried several other options mentioned without any luck. The file it mentioned "emulator-grpc.cer" still doesnt exist anywhere. There is a keystore in that folder called debug.keystore which isn't altered after fixing it, so I'm guessing that error is just misleading about the real problem, whatever it is. Anyway, thought I'd share what worked for me since I searched everywhere for it and didn't find it.


A quick fix:

From the main navbar menu Tools > Android > SDK Manager > Android SDK > SDK Tools

You'll then see the screen below where you can select '- Android Emulator Hypervisor Driver for AMD Processors (installer) version 1.3.0'

enter image description here

I am not sure what the actual root cause of the issue is, but this patched the issue for me and may help other people.


Here my scenario: I closed the emulator with force quit. After restarting emulator, I always got this error.

Fix: I opened the AVD Manager in Android Studio by selecting Tools > AVD Manager menu. In the opened popup, I chose Wipe Data option as can be seen below image. After that, I restarted emulator and it worked !!!

enter image description here


Your emulator is out of date, please update by launching Android Studio:

  1. Start Android Studio
    • Select menu "Tools > Android > SDK Manager"
    • Click "SDK Tools" tab
    • Check "Android Emulator" checkbox
    • Click "OK"