GRPC Server error while running andoid app on emulator

Dikesh Kumar :

So, I am new to android and trying to run my first app. Created an empty activity project and tried to run it using the emulator. I am getting the following error:

23:20 Emulator: emulator: WARNING: EmulatorService.cpp:448: Cannot find certfile: C:\Users\myUser\.android\emulator-grpc.cer security will be disabled.

23:20 Emulator: Started GRPC server at 127.0.0.1:8554

I am have tried installing the latest SDK from SDK tools, restarted the system. Still not good. Can Someone help?

Android Studio Details: Android Studio 3.6.1 Build #AI-192.7142.36.36.6241897, built on February 27, 2020 Runtime version: 1.8.0_212-release-1586-b04 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0 GC: ParNew, ConcurrentMarkSweep Memory: 1246M Cores: 4 Registry: ide.new.welcome.screen.force=true Non-Bundled Plugins:

thomas :

This seems to be quite a frequent recent problem, there are a few threads about it, for example: here and here among others.

I have had this problem myself, and what worked for me was to keep the emulator running, uninstall the app you just tried to run from within the emulator, and then re-run it from Android Studio (which will re-install it in the Android device in the emulator). When re-installed, it works fine.

Others in the aforementioned threads seemed to have luck with choosing:

File -> Invalidate Caches / Restart in Android Studio, but this did not make any difference for me.

I hope you find a solution.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=34404&siteId=1