Google play services 5.0.77

前端 未结 10 1423
我寻月下人不归
我寻月下人不归 2021-01-30 04:23

From the 25th of june two unrelated apps that are using ads started to have this NPE

java.lang.NullPointerException
   at zo.a(SourceFile:172)
   at aeh.a(SourceF         


        
10条回答
  •  温柔的废话
    2021-01-30 04:51

    Today, Google posts this : http://android-developers.blogspot.fr/2014/07/google-play-services-5.html

    And now it works for me. Just try again to update the GooglePlayService in your mobile and update your ADT.

    Edit :

    Code to check GPS version :

    // Check if GooglePlay Service is good;
                resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this.getActivity());
                if (resultCode != ConnectionResult.SUCCESS) {
                    if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {
                        GooglePlayServicesUtil.getErrorDialog(resultCode, this.getActivity(), 1).show();
                        rootView = inflater.inflate(R.layout.fragment_googleplayerror, container, false);
                        return rootView;
                    } else {
                        Log.i(Tag, "This device is not supported.");
                        getActivity().finish();
                    }
                }
    

提交回复
热议问题