-
-
Notifications
You must be signed in to change notification settings - Fork 197
Unable to apply changes on device: xxxxxxxxxxxxxx Error is: Socket connection timed out.. #4029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 Having the exact same issue. Performed the same test by creating a blank project with, and without, the nativescript-admob plugin installed. As in the OP, the plugin does not need to even be called in code. I also agree on the timing of the start of the problem with the OP. |
Hey @szgozcan, @skopekreep, Thank you for investigating the problem. You're absolute right that the problem is caused by Google Mobile Ads SDK version 17.0.0. Actually version 17.0.0 of Google Mobile Ads SDK requires In order to successfully run your app on device using local builds, you need to change the following code inside
This way {N} CLI will fallback to version In case you're using cloud builds, you need to refer We're working on a fix that will be applied directly from plugin on install step. Meanwhile, you can use the described approach above. Let me know if this works for you. |
…t-admob into sdk17_fix * 'sdk17_fix' of https://github.com/skopekreep/nativescript-admob: Updated per NativeScript/nativescript-cli#4029 (comment)
Hi, The problem I encounter is, the app looks running fine and I see the sample admob ads but when I use back buttons successively and navigate among the pages I get that error.
Then I went through another test, I pulled out all banner stuff out of my app and tested the release app with robo test in firebase. No issue detected. Then I tested the app with real device and no issue detected either. Since I have been using as a ads code for nativescript describen in https://github.com/nikolay-diyanov/sample-googleads-bannerview-mod/blob/master/app/bannerview.android.js But then I tested the code sample of Eddy https://github.com/EddyVerbruggen/nativescript-admob and I encountered an error as well. I built a release apk of Eddy's sample code and ran it with firebase. I got the following error. So I tested my with meta data tag and without, also with sample ADMOB AP ID and real ADMOB ID, in all cases after navigating among pages, especially using back button after and after I get the Finally, I do not get the socket timeout issue anymore and in first look app looks running but when I tested the app in emulator, real device and firebase test lab I get the error described above, Any help is greatly appreciated, I post below my banner js file, sample xml, sample js and android manifest xml. |
@szgozcan , the latest patch for |
Hi,
|
Last problem I have been struggling through is gone as well. Thanx everyone for the help. |
I also have this "Socket connection timed out.." Error since a few days. |
If you have the old version of nativescrip-admob plugin, that would be the problem. Removing the old one and adding the new plugin solves the problem (with the correct change in androidmanifest.xml) Hopefully it works. |
My app does not even use nativescript-admob :( |
@NickIliev why is this issue closed? |
If your app does not use
|
Then probably its due to some other issue, in my case I changed the app name in package.json file but forgot to change the same in |
I don't have the app name in my app.gradle file. |
@Fatme I am using [email protected] with tns version 6.1.2. I added the |
Nevermind, I figured it out. In the manifest you must replace |
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
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
The text was updated successfully, but these errors were encountered: