Google drive file download only working while using only with uploaded device. It's not working when i try to download from other device, that time it give error response 'Drive id invalid' from drive API. I don't know why its happen?
Based from this thread, the DriveId is a 'preliminary' Id that changes after the object has been committed. Check this link. Also, be noted that the DriveID for each file/folder is device specific.
Android Google DriveApi returning different DriveID for same title on different devices
The DRIVE_ID identifier is specific to your particular device, so if you use it on another device, it means nothing. The RESOURCE_ID is unique across devices, so that's the one you need to use for any type of synchronization. See SO 22841237.
Hope this helps!