Why "adb install (my APK)" start "cannot find the service: package"?

I start an Android virtual device, but I get:

Starting emulator for AVD 'avd.1' pulseaudio: pa_context_connect() failed pulseaudio: Reason: Connection refused pulseaudio: Failed to initialize PA contextaudio: Could not init `pa' audio driver emulator: Listening for console connections on port: 5558 emulator: Serial number of this emulator (for ADB): emulator-5558 

The emulator is suitable, but I do not see any icons, so I wonder if the above errors are "showstoppers"? Then, when I try adb install bin/my.apk , I get the Can't find service: package error. Thus, it looks like adb is not communicating correctly with AVD. However, adb devices shows the 5558 emulator above. Any advice would be really helpful.

+8
android android-emulator avd adb
source share

No one has answered this question yet.

See related questions:

1116
Installing Android SDK does not find JDK
703
How to install apk file in android emulator?
687
Android error: Failed to install * .apk on device *: timeout
359
Install ADB on macOS
52
Android Studio does not recognize my device
one
Android Studio emulator could not find wglgetextensionsstringarb
one
Failed to install apk on device-5554 emulator: no such file or directory
one
Why does adb scan port 5555 through 5585 if adb clients use port 5037 to communicate with the adb server
one
Could not start emulator on Android Studio 2.2
0
Error - starting emulator for AVD 'VisualStudio_android-23_x86_phone

All Articles