Google Drive Android API에서 이전
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Drive Android API는 2018년 12월 6일부터 지원 중단되었으며 2023년 2월 1일에 완전히 사용 중지됩니다.
타임라인
날짜 |
Drive Android API 상태 |
2018년 12월 6일 |
지원 중단이 공개적으로 발표됩니다. 기존 클라이언트는 API에 정상적으로 액세스할 수 있지만 즉시 이전 작업을 시작해야 합니다. 신규 클라이언트는 API를 사용해서는 안 됩니다.
|
2019년 10월 21일 |
Google Play 서비스 SDK 배포에서 Drive Android API가 삭제됩니다. Drive Android API 종속 항목을 삭제할 때까지 앱을 빌드할 수 없지만 기존 빌드는 영향을 받지 않습니다. Drive Android API 공개 문서는 더 이상 제공되지 않습니다.
|
2022년 3월 3일 |
Drive Android API가 지원 중단되었으며 모든 API 호출이 작동하지 않습니다. 클라이언트는 이 날짜까지 이전해야 합니다.
|
2023년 2월 1일 |
Drive Android API가 완전히 사용 중지되고 모든 연결 시도가 실패합니다.
|
Drive REST API 사용
드라이브 REST API는 다음을 비롯해 드라이브 Android API와 동일한 기능을 제공합니다.
클라이언트 이전 작업을 간소화하기 위해 위에 제안된 각 대체 항목을 보여주는 샘플 앱이 제공됩니다. 또한 REST API를 사용하여 사용자의 Drive 파일을 만들고 수정하고 쿼리하는 방법을 보여줍니다. 문제가 있는 경우 StackOverflow의 google-drive-api 태그를 확인하세요.
마이그레이션
Drive Android API가 지원 중단되고 모든 API 호출이 작동하지 않으므로 앱이 더 이상 API를 호출하지 않는지 확인하세요. 이렇게 하려면 API를 초기화하는 코드(addApi(Drive.API)
)를 삭제합니다.
Drive Android API에서 이전하지 않고 앱이 API를 호출하려고 하면 다음 오류 메시지가 반환됩니다.
com.google.android.gms.common.api.ApiException: 17: API: Drive.API is not
available on this device. Connection failed with:
ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-04(UTC)
[null,null,["최종 업데이트: 2025-08-04(UTC)"],[],[],null,["# Migrate from the Google Drive Android API\n\n**The Drive Android API is deprecated as of December 6, 2018 and will be fully\nturned down on February 1, 2023**.\n\nTimeline\n--------\n\n| Date | Drive Android API status |\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| December 6, 2018 | Deprecation is [publicly announced](https://cloud.google.com/blog/products/application-development/sync-google-drive-files-to-apps-using-the-drive-rest-api-bidding-farewell-to-the-drive-android-api). Existing clients will be able to access the API normally, but should immediately commence with migration efforts. New clients must not use the API. |\n| October 21, 2019 | The Drive Android API is removed from the Google Play Services SDK distribution. Apps will be unable to build until removing the Drive Android API dependency, but existing builds will be unaffected. The Drive Android API public documentation will no longer be available. |\n| March 3, 2022 | The Drive Android API is deprecated and all API calls are non-operational. Clients must migrate by this date. |\n| February 1, 2023 | The Drive Android API will be fully turned down and all connection attempts will be unsuccessful. |\n\nUse the Drive REST API\n----------------------\n\nThe Drive REST API offers the same functionality as the Drive Android API,\nincluding ways to:\n\n- Share and collaborate as you expect from Drive. You can [manage permissions or prompt the Share dialog](/workspace/drive/api/guides/manage-sharing) to users as needed. The REST API also allows for commenting on files, allowing your app to interact with the conversation around a file.\n- Search for files using [`files.list`](/workspace/drive/api/v3/reference/files/list), based on traditional indexing or [your own customized, indexable text](/workspace/drive/api/guides/file).\n- Detect changes to files through the [Changes collection](/workspace/drive/api/v3/reference/changes) and to any shared with the user through [shared drives](/workspace/drive/api/guides/enable-shareddrives).\n- Export and convert Google Docs so that your app can easily [open a user's document](/workspace/drive/api/guides/integrate-open#specific).\n\nTo ease client migration efforts, a\n[sample app](https://github.com/googleworkspace/android-samples/tree/master/drive/deprecation) is provided which\ndemonstrates each of the proposed replacements above. It also shows how to\ncreate, modify, and query for a user's Drive files using the REST API. If you\nhave any issues, check out the\n[google-drive-api](https://stackoverflow.com/questions/tagged/google-drive-api?tab=Newest)\ntag on StackOverflow.\n\nMigration\n---------\n\nSince the Drive Android API is deprecated, and all API calls are\nnon-operational, make sure your app is no longer calling the API. To do this,\nremove the code that initializes the API: `addApi(Drive.API)`.\n\nIf you don't migrate from the Drive Android API, and your app attempts to call\nthe API, the following error message is returned:\n\n`com.google.android.gms.common.api.ApiException: 17: API: Drive.API is not\navailable on this device. Connection failed with:\nConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}`"]]