由于android Q的升级 去掉了
/**
* The latitude where the image was captured.
*
* @deprecated location details are no longer indexed for privacy
* reasons, and this value is now always {@code null}.
* You can still manually obtain location metadata using
* {@link ExifInterface#getLatLong(float[])}.
*/
@Deprecated
@Column(value = Cursor.FIELD_TYPE_FLOAT, readOnly = true)
public static final String LATITUDE = "latitude";
/**
* The longitude where the image was captured.
*
* @deprecated location details are no longer indexed for privacy
* reasons, and this value is now always {@code null}.
* You can still manually obtain location metadata using
* {@link ExifInterface#getLatLong(float[])}.
*/
然后 就只能这样操作了
IRecorder.RecorderSpec recorderSpec = new IRecorder.RecorderSpec();
'''
Location location =new Location("");
location.setLatitude(设置维度);
location.setLongitude(设置经度);
recorderSpace.location = location;