0

I have a NativeScript JavaScript app the creates Google maps. Just recently, I've started receiving the error,

<AppName> is having trouble with Google Play services.  Please try again. 

Here's what I know so far:

  1. Problem only occurs on Android, not iOS
  2. Problem only occurs on emulators (2 tested), not actual device
  3. Similar app runs successfully on same emulators
  4. Prior version of app which used to run successfully now fails with error

I've spent most the day searching for answers and have tried a variety of changes to app.gradle, with no success. For the record, here's the pertinent Google Play services line from app.gradle:

 // See https://github.com/NativeScript/nativescript-geolocation/issues/81
project.ext {
  googlePlayServicesVersion = "11.2.+"
}

At this point I'm at a loss. I welcome any pointers.

I'll add that I've

  1. Removed and re-installed the NativeScript CLI and platforms
  2. Upgraded all components to 5.2.0 (current version)
  3. tns doctor yields all green checks
  4. I'm using Android Studio emulators

Update: I have determined that this error does not occur with version 4.2.0 of the NativeScript android platform, but does occur with version 5.0.0 and later. So a temporary workaround is to back-level that package:

tns platform add android@4.2.0

Update 2/25/2019: Simply downgrading the Android platform no longer works for me. I've recreated the issue with a minimal map app and opened an issue against nativescript-google-maps-sdk.

David
  • 531
  • 3
  • 14
  • If this is happening on emulators only then it's not a problem with your configuration. Probably need to use `Google Play Services SDK` for emulators. This might be helpful https://stackoverflow.com/a/14536645/6168272. – Ranjan Feb 17 '19 at 02:47

0 Answers0