I'm working with AndroidStudio and trying to use the googleplayservices for geocode.
I've followed the android tutorial: http://developer.android.com/google/play-services/setup.html
but in my imports i've got underlined : import android.location.LocationClient; that says: Cannot resolve symbol Location Client
Any ideas?
My code goes as next:
//imports
...
import android.location.Location;
import com.google.android.gms.location.LocationClient;
import android.location.LocationClient;
...
build.grandle
...
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
compile files('libs/android-async-http-1.4.6.jar')
compile 'com.google.android.gms:play-services:6.5.87'
}
...
and finally my xml manifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.name.application_name" >
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"/>
<uses-permission android:name="android.permission.READ_LOGS"/>
....
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity
....