-
-
Notifications
You must be signed in to change notification settings - Fork 197
Cannot set property 'socket' of null #3818
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
From @iguissouma on August 12, 2018 14:35 I'm also getting same error after updating to nativescript 4.2 and just running a new created project. |
From @dtopuzov on August 12, 2018 16:28 Hi @iguissouma, Can you please specify device model and Android version of the device? |
From @iguissouma on August 12, 2018 17:11 Hello @dtopuzov , I'm facing the problem on device and emulator. |
From @opsional on August 12, 2018 23:1 I'm to, on Android 4.4.2 (real device), but after re-run app works. |
Hi @RoyiNamir, |
From @RoyiNamir on August 13, 2018 8:10 Hi @tsonevn Here is the folder after delete ( created a new folder named tsonevn): run
|
@Fatme @tsonevn I am still seeing this with 4.2.2 I am getting this almost all the time :s I can't even update my apps. |
@farfromrefug remove the dash from :org.nativescript.apps-livesync and make a capital letter in org.nativescript.Appslivesync See this |
@RoyiNamir and where should I do that. I can't This I not the app name! The app name is simply |
@farfromrefug can you paste your android manifest file? |
manifest ;) |
@farfromrefug do you extend an activity ? |
no I simply run the ui test app :D working on the framework |
@farfromrefug if that's the case then i guess i dont know... |
I'm experiencing the exact same problem. Couple of times I'v got the livesync/debug to work, but most of the times it installs the app and timeouts. |
@nikopolv what's your activity name in manifest ? did you read the discussion ^ ? |
I did yea. I also tried com.company.android.app, com.company.AndroidApp, Com.Company.AndroidApp
|
@nikopolv the rule (after 4.2.2) is Also did you remove platform and then add ? |
Hi @farfromrefug , @RoyiNamir, @nikopolv, This exception should not be caused by your app ids. We don't have a rule for a capital letter there. The starting capital letter is required only for the class name of the custom activities and there aren't any changes there. In other words, The real issue looks like the above-mentioned @RoyiNamir, thanks for helping with that, however, the regex change in 4.2.2 is just allowing the usage of capital letters in the packages of the custom activities (e.g. using |
@DimitarTachev Thanks for clarifying. However , I've never mentioned app id. I always asked about However , it might be that i've confused (miscommunication) appID vs activity name . BTW - as you can see in the OP's log , there is a timeout socket , and my( spcific) problem was activity name named |
@RoyiNamir, the app id clarification was related to the "org.nativescript.apps-livesync" comments above. That's just a socket related string containing the app id concatenated with "-livesync" and it's not causing the exception. Regarding your specific problem, you should be also able to use We will need more info from @farfromrefug and @nikopolv in order to further investigate their issues as I don't believe thay are related to custom activities with some strange naming. I hope we will get more details for the |
@tsonevn This also happens when the nativescript id in |
Still getting this after upgrading to |
@tsonevn Im still getting the error after upgrading to 4.2.4. Any workaround for this issue?
|
I just started getting this error as well today with Android - very strange 🤔 |
Hi, @jannotabamo @NathanWalker, @aaayushsingh, can you upgrade to NativeScript CLI |
@tsonevn @DimitarTachev |
Hi @shiv19 , If that doesn't help please check if the application is started on the device, before the message appears. If the application is not started at all unify the values of |
@nwalker |
@KristianDD |
Hey everyone, |
From @RoyiNamir on August 12, 2018 9:42
After upgrading our project to 4.2 , we've experiencing socket connections problems to a real device when
tns run android
Worth to mention that
tns run android
does work with emulators ( both Geny & AVD) , but it doesn't work with real devices ( my Galaxy s8+ and a colleague's Galaxy s8 , non rooted regular device)When
tns run android
:we get :
--> Video showing the problem <--
The app IS installed but not invoked. ( it used to work) before upgrade.
We have to tap the launch icon in order to see the app running
PackageID is the same in all files ( manifest / packagejson)
BTW - if you want a real project that produces it , I can send privately.
Windows machine , Android , Antivirus & firewall is disabled , uninstalled App from device.
Copied from original issue: NativeScript/NativeScript#6180
The text was updated successfully, but these errors were encountered: