2017-10-22 7 views
0

사용자의 현재 위치를 알아야하는 앱을 개발 중입니다. NativeScript - Google Play 서비스를 업데이트하지 않으면이 앱이 실행되지 않습니다.

내가 nativescript-google-maps-sdk을 설치하고 내가지도 및 위치 마커를 볼 수 있었다 등 ...

내가 현재 위치를 얻을 필요 할 때 문제가 시작, 그래서 플러그인 nativescript-geolocation를 설치하는 데 필요한.

그리고이 오류로 어려움을 겪고 있었어요 : 그들은 내가 구글 API의 내 에뮬레이터 대상과의 x86 이미지를 사용하는 데 필요한 말했다 곳 enter image description here

는 내가 거기에 다른 게시물을 보았다. enter image description here

그것은 구글 API의를 타겟으로하고 86있다 :

내 에뮬레이터의 설명을보고, 나는이 있어요.

아이디어가 있으십니까? 미리 감사드립니다. 안드로이드에 enter image description here

+0

에뮬레이터에서 테스트 할 경우 'Google API'가 아닌 'Google Play'가 설치된 에뮬레이터를 설치해야합니다. –

답변

0

검출 위치 정보 구글 Play 서비스가 필요합니다 :)

- - UPDATE 이 내가 설치되어있어 패키지입니다. Android SDK 관리자를 통해 최신 버전의 Google Play 서비스를 설치하면이 오류를 해결할 수 있습니다.

UNIX와 유사한 운영 체제를 사용하고 PATH에 Android SDK의 이진 파일 위치가 포함되어있는 경우 android 명령을 통해 액세스 할 수 있습니다. https://code.tutsplus.com/tutorials/integrating-google-play-services-on-android--cms-19828

+0

업데이트를 참조하십시오. :). – RottenCheese

+0

어떤 버전의 nativescript-geolocation을 사용하고 있습니까? 이 댓글 (4.2.0)의 최신 버전은 Google Play 서비스의 버전 지원 문제를 해결합니다. – Amjad

+0

정확히 그 버전을 사용하고 있습니다. 4.2.0 – RottenCheese

0

당신이 thread에서 제안 된 해결 방법을 시도 할 수 있습니다 : 더 시각적 가이드

은,이 링크를 확인하십시오. 이 post에서 또한

  • Reboot/restart device.
  • Go to settings > storage > cached data > clear cached data.
  • Go to settings > storage > apps > google play store > clear data.
  • Go to settings > storage > apps > download manager > clear data.
  • Go to settings > security > scroll down to Device administrators .
  • Tap on this and see Android device manager.
  • Next to this "uncheck" the box (Deactivate).
  • Go to settings > storage > apps > google play services > uninstall updates.
  • Leave the device for sometime.
  • Connect to internet and plugged the charger in.

Play services update automatically. If it not updates,

  • Open G+app or google map and this prompts to update.
  • Tap on update button.
  • Go to settings > Android device manager > activate.
  • Reboot/restart device.

, 구글 플레이 서비스는이 응용 프로그램은 자동으로 당신이 인터넷 연결이 안정적으로 업데이트 할 것, Google Play에서 Google 앱과 앱을 업데이트하는 데 사용된다 (Wi-Fi 또는 모바일 데이터) . 직접 Google Play 서비스를 직접 업데이트 할 수있는 방법은 없습니다.

However, I recommend you uninstall updates for Google Play Services and then restart your device so that Google Play Services would update automatically. Here's how:

  1. Go to Settings > Apps or Application Manager > Google Play Services > touch the 3 vertical dots at the top and Uninstall updates.
  2. Restart your device.

희망이 있습니다.