2016-12-13 12 views
4

Googleマップを使用するAndroidプロジェクトを行っています。私はそれをプロジェクトの開発に使ったので、アプリケーションは5.1.1 Androidバージョンを持っている私の携帯電話で完璧に動作していますが、同じアプリが他の携帯電話(6.0.0 Android)で動作していません。他の携帯電話では、Googleマップは更新されていません。 (現在の場所には行かない)。他の携帯電話でGoogleマップが更新されないのはなぜですか?StrictModeポリシー違反:StrictModeDiskReadViolation、WriteViolation in Android

これを促す。

12-13 08:25:55.796 11170-11170/com.example.mapspractice1 W/f: Suppressed StrictMode policy violation: StrictModeDiskReadViolation 

12-13 08:25:55.796 11170-11170/com.example.mapspractice1 W/f: Suppressed StrictMode policy violation: StrictModeDiskWriteViolation 

12-13 08:25:55.939 11170-11458/com.example.mapspractice1 W/DynamiteModule: Local module descriptor class for com.google.android.gms.googlecertificates not found. 

12-13 08:25:55.949 11170-11458/com.example.mapspractice1 I/DynamiteModule: Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:2 

12-13 08:25:55.949 11170-11458/com.example.mapspractice1 I/DynamiteModule: Selected remote version of com.google.android.gms.googlecertificates, version >= 2 

12-13 08:25:59.044 11170-11209/com.example.mapspractice1 V/FA: Inactivity, disconnecting from the service 
+0

閉じる投票はなぜですか?この質問は明らかにプログラミングに関するものです。 – marmor

答えて

4

あなたが見ているログの警告は、問題に関連しているとは言えません。ただの警告であり、無視しても問題ありません。

Android M(6)に現在の場所を取得できないことに関連するものは、新しいRuntime Permissionsモデルです。 android:targetSdkVersion23以上に設定した場合は、ユーザーに必要な権限を明示的に求め、さらにAndroidManifestにする必要があります。これを確認するには

は、Android Mデバイス上で、

は、「場所」権限を有効>にアプリ> 権限を見つけて選択> [電話の設定アプリ> [アプリ]を開きます。

これで、アプリ内の位置が正しく認識されるはずです。

実行時にユーザーからの権限を要求する方法については、https://developer.android.com/training/permissions/requesting.html を参照してください。

+0

ありがとう、ありがとう、理由を教えてくれてありがとう。私は、あなたが来た40回のビューの後に、あなたが来たときに、もう一度感謝しています。私は簡単な言葉を持っています; 5月(私は簡単な言葉を持っています。神様。:)今すぐうまくいきます。 – user6750923

+1

喜んで助けました。問題を解決済みとマークし、StackOverflowをきれいに保つのに役立ちます – marmor

関連する問題