が欠落しているときに私がプレイサービスは、いつものように利用可能であるかどうかをチェックするコードを実装しているConnectionResult.SUCCESSを返します。isGooglePlayServicesAvailableは()サービスが
mGooglePlayServicesAvailable = false;
GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();
int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);
if (resultCode == ConnectionResult.SUCCESS) {
mGooglePlayServicesAvailable = true;
}
else if (apiAvailability.isUserResolvableError(resultCode)) {
apiAvailability.getErrorDialog(this, resultCode, RC_AVAILABILITY).show();
}
私の問題は、resultCodeががあってもConnectionResult.SUCCESSのようだということですサービスは欠落しています。これは、多くのデバイスでAndroidアプリをクラッシュさせます。
P.S.私はlogcatで次の行を見ることができます。これはむしろ変です。
E/GooglePlayServicesUtil(12419): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
プレイサービスが利用可能かどうかを確認するためのより良い方法がある場合は、この動作を引き起こしたりすることができるもの上の任意のアイデア?
前もって感謝します。