を見つけることができません。これが実行されるとGoogleApiAvailability.getErrorDialogは()私はこのコードを持っている文字列リソース
GoogleApiAvailability googleAPI = GoogleApiAvailability.getInstance();
String msg = getString(R.string.common_google_play_services_update_text);
Log.e(TAG, msg);
Dialog errDlg = googleAPI.getErrorDialog(MyActivity.this, result, 1111, listener);
、文字列common_google_play_services_update_text
が正しくLogCat
に書かれていますが、getErrorDialog()
は、この例外がスローされます。
java.lang.NoSuchFieldError: No static field common_google_play_services_update_text of type I in class Lcom/google/android/gms/R$string; or its superclasses (declaration of 'com.google.android.gms.R$string' appears in /data/app/com.mygame-1/base.apk)
どうすればこの問題を解決できますか?
コードが実行されると、文字列common_google_play_services_update_textがLogCatに正しく書き込まれます。したがって、getErrorDialog()ではエラーでなければなりません。 – activity