[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eIn November 2022, Google Play Services for AR will remove deprecated methods related to NDK camera images and metadata, potentially impacting apps using ARCore SDK versions prior to 1.20.0.\u003c/p\u003e\n"],["\u003cp\u003eApps compiled with ARCore SDK version 1.20.0 or later are not affected by this change and will continue to function normally.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should rebuild their affected apps using the latest ARCore SDK (version 1.20.0 or later) to avoid potential crashes or unexpected behavior.\u003c/p\u003e\n"],["\u003cp\u003eA special meta-data tag can be added to the AndroidManifest.xml file to simulate the November 2022 changes and test app functionality in advance.\u003c/p\u003e\n"],["\u003cp\u003eThis change aims to improve the performance and stability of AR experiences on Android devices.\u003c/p\u003e\n"]]],[],null,["# November 2022 deprecated camera methods removal for ARCore SDK for Android (Kotlin/Java)\n\nIn November 2022, *Google Play Services for AR* will remove deprecated methods\nrelated to NDK camera images and metadata.\n\nApps using these methods in affected versions of\n\nthe ARCore SDK\n\nmight start to\nbehave differently or crash when users update Google Play Services for AR.\n\nAffected apps\n-------------\n\n| **Important:** Apps compiled with ARCore SDK version 1.20.0 or later will not be affected.\n\nBeginning in November 2022, your app may stop working or crash when users update\nto the latest version of *Google Play Services for AR* if:\n\n1. Your app was compiled with an affected SDK\n2. Your app uses any of the following affected APIs:\n\n| If your app was compiled with ARCore SDK version... | And uses affected APIs... | Breaking behavior starting in November 2022 |\n|-----------------------------------------------------|-------------------------------------------------------------------------------------------------|---------------------------------------------|\n| 1.19.0 or lower | [`Frame.getImageMetadata()`](/ar/reference/java/com/google/ar/core/Frame#getImageMetadata-) | Throws `IllegalArgumentException`. |\n| 1.10.0 or lower | [`Frame.acquireCameraImage()`](/ar/reference/java/com/google/ar/core/Frame#acquireCameraImage-) | Returns a 0x0 sized image. |\n\nFix affected apps\n-----------------\n\nAffected apps may see breakage in November 2022. To mitigate this,\nrebuild your app using [the latest ARCore SDK](/ar/develop/java/enable-arcore#dependencies). At a minimum, you must\nupgrade to ARCore SDK version 1.20.0 or later.\n\n\nVerify affected app is fixed\n----------------------------\n\nTest the app by simulating the November 2022 changes in advance by adding a special `meta-data` entry to your app's `AndroidManifest.xml`:\n\n\n1. Ensure *Play Services for AR* version 1.29.0 or higher is installed on the target device.\n2. Add a new `\u003cmeta-data\u003e` tag as a child of the existing `\u003capplication\u003e` element in the app's\n\n `AndroidManifest.xml` file\n\n :\n\n \u003capplication ...\u003e\n ...\n\n \\\u003c!--\n Simulate the November 2022 changes in advance.\n IMPORTANT: Remove this tag when testing is completed.\n Do not include this tag in published versions of your app.\n --\\\u003e\n \\\u003cmeta-data android:name=\"com.google.ar.core.session_settings\"\n android:value=\"camera_stack_option,unified_mono\" /\\\u003e\n \u003c/application\u003e\n\n3. Test your app and verify that all ARCore features are functioning as\n expected.\n\n4. Remove the `\u003cmeta-data\u003e` tag when testing is complete. Leaving this tag\n in place in your published app could result in unexpected behavior in the\n future.\n\nIf the app functions normally, then the app is ready for the changes in November 2022.\n\nTimeline\n--------\n\n| Period | Events |\n| November 2020 (ARCore SDK version 1.20.0) | Deprecate native APIs. Update implementation to use alternate native APIs. |\n| November 2021 | Announce future breaking change due to pending removal of implementation of affected APIs from Google Play Services for AR in November 2022. |\n| November 2022 | Remove implementation of affected APIs from Google Play Services for AR. Introduce breaking change for apps using ARCore versions prior to 1.20.0. |\n|-------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|"]]