So I am connecting to the google api client like this.
googleApiClient = new GoogleApiClient.Builder(context)
.addApi(LocationServices.API)
.addApi(ActivityRecognition.API)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.build();
googleApiClient.connect();
This exact same code I am using in several places and it works well. It's not different from what you see in their tutorials. But now:
java.lang.IncompatibleClassChangeError: The method 'void com.google.android.gms.common.api.GoogleApiClient.connect()' was expected to be of type interface but instead was found to be of type virtual (declaration of 'java.lang.reflect.ArtMethod' appears in /system/framework/core-libart.jar)
The line that the stacktrace reports is:
googleApiClient.connect();
Using play services 8.1
compile 'com.google.android.gms:play-services:8.1.0'
Has anyone this this?