S
S
spaceatmoon2019-03-20 22:40:11
android studio
spaceatmoon, 2019-03-20 22:40:11

After building any apk, it fails to install, why?

Installed the latest version of Android Studio as of today. At first I wanted to build my application, but then, for the sake of persuasiveness, I created an empty project and decided to test it. In general, the result is deplorable everywhere, and I cannot apply Google's answers to myself.

Log
20.03.2019
22:11	Gradle sync started
22:11	Project setup started
22:11	Gradle sync finished in 9 s 605 ms (from cached state)
22:11	Executing tasks: [:app:generateDebugSources]
22:11	Gradle build finished in 710 ms
22:11	* daemon not running; starting now at tcp:5037
22:11	* daemon started successfully
22:11	adb refused request: closed
22:11	Failed to start monitoring emulator-5554
22:11	ADB rejected shell command (pm list users): closed
22:12	Error during Sync: null
22:12	ADB rejected shell command (pm list users): closed
22:12	Executing tasks: [:app:assembleDebug]
22:12	Gradle build finished in 1 s 416 ms
22:12	ADB rejected shell command (wm dismiss-keyguard): closed
22:12	ADB rejected shell command (cmd package install-create -r -t -S 1633846): closed
22:12	ADB rejected shell command (pm uninstall com.example.myapplication): closed
22:12	Session 'app': Error Installing APKs
22:12	Adb connection Error:Удаленный хост принудительно разорвал существующее подключение
22:12	Unable to open connection to: localhost/127.0.0.1:5037, due to: java.net.ConnectException: Connection refused: connect
22:12	Connection attempts: 1


Tried manually through adb start-server, but then the list of virtual devices is empty when you click on Run and such an error.
22:37	Error during Sync: Unable to open sync connection!

How to fix?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question