2017-10-22 3 views
0

私はユーザーの現在地を知る必要があるアプリを開発しています。私は現在位置を取得するために必要なときにNativeScript - Google Playサービスを更新しない限り、このアプリは実行されません。

私はnativescript-google-maps-sdkをインストールし、私はなど、マップと場所のマーカーを見ることができました...

問題が始めたので、私は、プラグインnativescript-geolocationをインストールする必要がありました。

そして私は、このエラーに苦しんできた: enter image description here

私は、彼らが私はGoogleのAPIのに私のエミュレータをターゲットとx86のイメージを使用するために必要なことを言ったが、いくつかの他の記事を見ました。 enter image description here

それはGoogleのAPIのをターゲットのx86です:

私のエミュレータの説明を見て、私はこれを得ました。

ありがとうございます。 Android上 enter image description here

+0

エミュレータでテストする場合は、「Google Play」ではなく「Google Play」でエミュレータをインストールしてください。 –

答えて

0

検出ジオロケーションは、Googleがサービスを再生する必要があります:)

- - 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 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.

これが役に立ちます。

関連する問題