I am working in Google App Indexing for my project.
Newbee for this feature. I just following the google guide lines.
Notify the google using API
In this page,asked to create an instance of GoogleApiClient. I tried but getting "GoogleApiClient cannot be resolved a type" error.
And I have added the following libraries into my project.
1.Google play services 2.Google api client 3.Google http api client
and
the error is
How can I resolve this error?
Nested Class Summary Use GoogleApi based APIs instead. See Moving Past GoogleApiClient. This interface is deprecated. use GoogleApi based APIs instead.
The GoogleApiClient.Builder class provides methods that allow you to specify the Google APIs you want to use and your desired OAuth 2.0 scopes. Here is a code example that creates a GoogleApiClient instance that connects with the Google Drive service: GoogleApiClient mGoogleApiClient = new GoogleApiClient.
After you've added the Google Play services library as a dependency for your app project, open your app's manifest file and add the following tag as a child of the element (this is a new requirement as of updated Google Play Services):
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
Then add this statement in your class (or fix the error):
import com.google.android.gms.common.api.GoogleApiClient
For Android Studio, follow directions here:
https://developers.google.com/android/guides/setup
If you update SDK all...
I hope this helps you...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With