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:
- Problem only occurs on Android, not iOS
- Problem only occurs on emulators (2 tested), not actual device
- Similar app runs successfully on same emulators
- 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
- Removed and re-installed the NativeScript CLI and platforms
- Upgraded all components to 5.2.0 (current version)
- tns doctor yields all green checks
- 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.