Skip to content

Unable to apply changes on device: xxxxxxxxxxxxxx Error is: Socket connection timed out.. #4029

@szgozcan

Description

@szgozcan

Environment
No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Xcode version 9.4.1 satisfies minimum required version 9.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 5.0.0-2018-10-12-12481 version and is up to date.
✔ Component tns-core-modules has 4.2.1 version and is up to date.
✔ Component tns-android has 4.2.0 version and is up to date.
✔ Component tns-ios has 4.2.0 version and is up to date.

Describe the bug
When I run my apps I started to get

` Project successfully built.

Installing on device 192.168.57.101:5555...

Successfully installed on device with identifier '192.168.57.101:5555'.

 Unable to apply changes on device: 192.168.57.101:5555. Error is: Socket connection timed out..`

I deleted the platforms, hooks, package-lock.json and node modules folders and when I re-run the app it is not even opening. Then I upgraded to next CLI and faced the same issue. The problem started when Google Mobile SDK version 17.0.0 was released last week.

In order to test, I created a blank project and ran with an emulator. It worked fine, then I only ran tns plugin add nativescript-admob command and when I debug without adding anything to code, the app failed with Unable to apply changes on device: 192.168.57.101:5555. Error is: Socket connection timed out..`output. The app doesn't open and you can't delete it. You have to uninstall the app from settings.
So I believe that there must be some kind of problem with the latest release of Google Mobile SDK version 17.0.0 and admob plugin. Any help is appreciated.

To Reproduce

Expected behavior

Sample project

Additional context

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions