com.google.android.gms.location.LocationClient的实例化挂起

com.google.android.gms.location.LocationClient的实例化挂起,android,google-play-services,android-library,location-client,Android,Google Play Services,Android Library,Location Client,我正在与android Studio一起开发一个android库项目,该项目使用google play服务来利用Geofences API 为了包含Play服务,我使用maven(gradle.build文件中的build rule),就像Android官方文档所示()。在这个android库中,我在实例化LocationClient之前,通过方法GooglePlayServicesUtil.isGooglePlayServicesAvailable验证Google Play服务是否可用 Log

我正在与android Studio一起开发一个android库项目,该项目使用google play服务来利用Geofences API

为了包含Play服务,我使用maven(gradle.build文件中的build rule),就像Android官方文档所示()。在这个android库中,我在实例化
LocationClient
之前,通过方法
GooglePlayServicesUtil.isGooglePlayServicesAvailable
验证Google Play服务是否可用

Log.d(TAG, "Registering geofences");
try{
    if(GooglePlayServicesUtil.isGooglePlayServicesAvailable(this) != ConnectionResult.SUCCESS){
        Log.e(TAG, "Google Play Services unavailable");
        return;
    }else
        Log.d(TAG, "Google Play Services are available");
    Log.d(TAG, "creating LocationClient");
    locationClient = new LocationClient(context, this, this);
    Log.d(TAG, "connecting LocationClient");
    locationClient.connect();
} catch (Exception e) {
    e.printStackTrace();
}
这是我从Logcat得到的日志:

04-11 09:45:27.331  23741-23781/foo.bar.myoldapp D/AWRLocationService﹕ Registering geofences
04-11 09:45:27.331  23741-23781/foo.bar.myoldapp W/dalvikvm﹕ VFY: unable to resolve static field 3086 (common_google_play_services_install_title) in Lcom/google/android/gms/R$string;
04-11 09:45:27.331  23741-23781/foo.bar.myoldapp D/dalvikvm﹕ VFY: replacing opcode 0x60 at 0x004b
{... and around 20 similar lines ...}
04-11 09:45:27.341  23741-23781/foo.bar.myoldapp E/GooglePlayServicesUtil﹕ The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
04-11 09:45:27.351  23741-23781/foo.bar.myoldapp D/AWRLocationService﹕ Google Play Services are available
04-11 09:45:27.351  23741-23781/foo.bar.myoldapp D/AWRGeofencesReceiver﹕ creating LocationClient
04-11 09:45:27.351  23741-23781/foo.bar.myoldapp W/dalvikvm﹕ VFY: unable to resolve static field 3100 (location_client_powered_by_google) in Lcom/google/android/gms/R$string;
04-11 09:45:27.351  23741-23781/foo.bar.myoldapp D/dalvikvm﹕ VFY: replacing opcode 0x60 at 0x0019
04-11 09:45:30.731  23741-23741/foo.bar.myoldapp D/AWRWifiScanResultBroadcastReceiver﹕ onReceive
正如你所看到的,Google Play服务似乎没有被完美地包含,原因我不知道(因为我按照Google要求的方式包含它们)。但它们似乎存在,因为
GooglePlayServicesUtil.isGooglePlayServicesAvailable
返回true。然后,我实例化LocationClient,但什么也没有发生。不会引发异常,也不会显示错误日志。我做错了什么