上述问题是由于android设备不支持gps功能,设备无gps芯片
可通过下面方法验证设备是有具有GPS功能,无GPS功能可使用网路定位方式:
LocationManager manger = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);
if (!manger .isProviderEnabled(android.location.LocationManager.GPS_PROVIDER)) {
Log.i("tag","无gps模块")
}