-
-
Notifications
You must be signed in to change notification settings - Fork 76
S: ERROR Error: Uncaught (in promise): TypeError: ex.getStatusCode is not a function #93
Comments
Please, give us a bit more information about this issue:
|
|
This happened to me when I had conflicting googlePlayServicesVersion in the include.gradle of nativescript-geolocation and nativescript-google-maps-sdk plugins. I set both to default to "11.4.0" and the error disappeared. Not sure if OP's problem is due to the same problem, but it might worth checking out. |
Using 11.8.0 yields same result, any pointers on this? project.ext { |
I've been off for few weeks with this task, would appreciate any pointers on this as well |
Hi, I had the same problem, you have to modify after you use "tns build android". |
Same here with Play Services 11.8.0. The error handler is returning |
I'm getting the same error.... Which platform(s) does your issue occur on?Android and real device - google pixel Please, provide the following version numbers that your issue occurs with:
Please, tell us how to recreate the issue in as much detail as possible.Open the app. Get the following error straight away... JS: Angular is running in the development mode. Call enableProdMode() to enable the production mode. Is there any code involved?Call the following function from the constructor of the main component
|
Hi guys, we found the issue with the exception handling in enableLocationRequest. It was fixed in PR #105 and released in version 4.2.3 of the plugin. |
I'm still having trouble. I get an "Error: Cannot enable the location service" despite seeing location permissions for the app are enabled in the Android settings. |
Hi @rajd90, It seems that you are getting some unexpected exception on the location service check which is not reproducible on our side and in this way, you are going through the devices without a location service flow. Could you debug and check the exception ( You could also check if the exception is reproducible on other devices or emulators and if yes, a sample application reproducing this behavior will be highly appreciated. |
Hi guys, We were able to reproduce such exception by using the plugin along with the Firebase one. The inner exception is We are still investigating the issue but as a workaround, you could delete your We will update you back when we have further details. |
any updates on this? |
Hi @rajd90, We found the reason for this exception and it's now logged in the CLI repo. You could track the status of NativeScript/nativescript-cli#3354. Meanwhile, as a workaround, you could remove your |
I've just tried removing and adding the platforms folder but i still get an
error. What else can I try? Is there an eta on when the issue will be
resolved?
…On Fri, 2 Mar 2018 at 08:17 Dimitar Tachev ***@***.***> wrote:
Hi @rajd90 <https://github.com/rajd90>,
We found the reason for this exception and it's now logged in the CLI
repo. You could track the status of NativeScript/nativescript-cli#3354
<NativeScript/nativescript-cli#3354>.
Meanwhile, as a workaround, you could remove your platforms folder after
installing a new plugin depending on Google Play Services.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#93 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhFHJ9qQflgraZYYZ95nIpbeIUrt6cVQks5taQADgaJpZM4Q-bwS>
.
|
@rajd90 This issue is related to the 'TypeError: ex.getStatusCode is not a function' error. Please provide us with a sample application if you still get the same error after removing the platforms folder or open a new issue if you are getting a different exception. |
@DimitarTachev .....I have tried removing and add the platform, as well as removing and adding the plugin. I think the original error is gone, but I'm now getting the following error: Error: Cannot enable the location service. TypeError: com.google.android.gms.location.LocationRequest is not a constructor I've also tried changing the google play services version in the app.gradle file but no luck. |
Hi @rajd90, if setting the Also, make sure you are using one of the the latest versions of the NativeScript Android runtime and NativeScript CLI. |
I have pretty much the same issue, when I try to tns run android I get this error (I already tried in iOS with no issues so far) ERROR Error: Uncaught (in promise): Error: Cannot enable the location service. Error: java.lang.NoClassDefFoundError: com.google.android.gms.location.LocationRequest |
Check if some of the above answers can help you - removing platforms directory, setting |
thanks that made the trick for me (modifying the dependency for the proper google play services version) |
I have the same now after removing the following from my
The problem is that the latest versions of @NickIliev please re-open this issue. It needs to be fixed to be able to be used in recent versions of Google Play Services. Please advise! |
I found that this line of code of this project sets the default I was able to resolve my conflict with
Is there not a better way of resolving plugins dependencies? |
Android
The text was updated successfully, but these errors were encountered: