Reputation: 2549
I am working in Google App Indexing for my project.
Newbee for this feature. I just following the google guide lines.
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?
Upvotes: 6
Views: 11682
Reputation: 52494
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
Upvotes: 5
Reputation: 2289
If you update SDK all...
I hope this helps you...
Upvotes: 1