I update the Google play service SDK (Rev 29) in Android SDK Manager recently. Then I found the apk I build after the SDK is updated will crash during initial the GoogleApiClient.
Here is the code we use.
mGoogleApiClient = new GoogleApiClient.Builder(this)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.addApi(LocationServices.API)
.build();
And here is the log of call stack
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.xxxxxxx.xxxxx, PID: 3855
java.lang.VerifyError: Rejecting class com.google.android.gms.location.internal.zzd because it failed compile-time verification (declaration of 'com.google.android.gms.location.internal.zzd' appears in /data/app/com.xxxxxx.xxxx-2/base.apk)
at com.google.android.gms.location.LocationServices.(Unknown Source)
The google play service version I use is com.google.android.gms:play-services-location:8.3.0