Releases: google-ar/arcore-android-sdk
ARCore SDK for Android v1.13.0
Breaking & behavioral changes
None.
New APIs and capabilities
None.
Deprecations
None.
Other changes
- Updated the samples gradle plugin to 3.5.0 (fixes "Gradle Sync error: No value has been specified for property manifestOutputDirectory").
- Fixed a compiler warning in C apps ("warning: explicitly defaulted default constructor is implicitly deleted").
Bug fixes
- Apps built with ARCore SDK 1.13 and later now correctly verify that the camera permission has been granted at ARCore session creation time. This check was missing in Google Play Services for AR (ARCore) 1.8 through 1.12, causing apps built with ARCore SDK 1.12 and earlier to fail to create an ARCore session on some devices, but succeed on others.
ARCore SDK for Android v1.12.1
Note: This is a Google Play Services for AR (APK) only release.
Bug fixes
- Fixes issues affecting users of Google Maps AR Walking Directions.
ARCore SDK for Android v1.12.0
Breaking & behavioral changes
-
The data captured by
hostCloudAnchor()(Java) andArSession_hostAndAcquireNewCloudAnchor()(NDK), which is uploaded to the ARCore Cloud Anchor API service has changed. See https://developers.google.com/ar/develop/java/cloud-anchors/overview-android#how-hosted to learn more. -
resolveCloudAnchor()(Java) andArSession_resolveAndAcquireNewCloudAnchor()(NDK) will no longer timeout or fail when the ARCore Cloud Anchor API service is unreachable, or the anchor cannot be immediately resolved. Instead, the API will continue to attempt to resolve the provided anchors until they are detached.- Java:
ERROR_RESOLVING_LOCALIZATION_NO_MATCHandERROR_SERVICE_UNAVAILABLEenums inCloudAnchorStateare now deprecated and will no longer be returned. - NDK:
AR_CLOUD_ANCHOR_STATE_ERROR_RESOLVING_LOCALIZATION_NO_MATCHandAR_CLOUD_ANCHOR_STATE_ERROR_SERVICE_UNAVAILABLEenums in theArCloudAnchorStateare now deprecated and will no longer be returned.
These changes only affect apps built with ARCore SDK 1.12 or later. Apps built with older SDKs will not be affected by this change, and will continue to observe old behavior.
- Java:
New APIs and capabilities
- There is a new enum value that can be set for a Cloud Anchor's state. The
ERROR_HOSTING_SERVICE_UNAVAILABLEvalue will be set for a Cloud Anchor during the hosting process, if the ARCore Cloud Anchor service is unreachable.
Deprecations
- The following enum values in the
CloudAnchorStateare being deprecated:- Java:
ERROR_RESOLVING_LOCALIZATION_NO_MATCHandERROR_SERVICE_UNAVAILABLEenums inCloudAnchorStateare now deprecated and will no longer be returned. - NDK:
AR_CLOUD_ANCHOR_STATE_ERROR_RESOLVING_LOCALIZATION_NO_MATCHandAR_CLOUD_ANCHOR_STATE_ERROR_SERVICE_UNAVAILABLEenums in theArCloudAnchorStateare now deprecated and will no longer be returned.
- Java:
Other changes
None.
Bug fixes
None.
ARCore SDK for Android v1.11.0
Breaking & behavioral changes
- ARCore now targets 60fps on supported devices. Use new camera config filters to target 30fps on all ARCore devices. See ARCore supported devices for a list of supported devices.
- All sample apps will now allow the device to sleep when tracking is lost, such as when the device is placed on a table or in a pocket or bag.
New APIs and capabilities
- Ability to filter camera configurations based on Target FPS and Depth Sensor Usage:
- New
CameraConfigFilterclass (Java) andArCameraConfigFilter_*()functions (NDK) let an app filter theCameraConfiglist based on Target FPS and/or Depth Camera Usage. - New
Session.getSupportedCameraConfigs(CameraConfigFilter)(Java) andArSession_getSupportedCameraConfigsWithFilter(…)(NDK) returns a list of supported camera configs based on the provided filter settings.
- New
Deprecations
Session.getSupportedCameraConfigs()(Java) andArSession_getSupportedCameraConfigs(…)(NDK) are now deprecated. UsegetSupportedCameraConfigs(CameraConfigFilter)(Java) andArSession_getSupportedCameraConfigsWithFilter(…)(NDK) instead.
Other changes
- The ARCore service has been renamed to Google Play Services for AR. On Google Play devices it is now distributed as part of Google Play Services.
- The samples have been updated to Gradle 5.4.1 and Android Gradle Plugin 3.4.1.
- Samples now uses white for all detected planes, to avoid confusion due to users inferring meaning from the different colors.
- Fixed a memory leak that occurs when an Activity is passed in as the Application Context during Session creation.
- Added a switch to Computer Vision sample for toggling RGB camera passthrough.
Bug fixes
None
ARCore SDK for Android v1.10.0
Breaking & behavioral changes
- None
New APIs and capabilities
- New Environmental HDR mode added to Light Estimation API.
- Environmental HDR provides developers with three APIs to replicate real world lighting when using the back-facing camera:
- Main Directional Light: helps with casting shadows in the right direction.
- Ambient Spherical Harmonics: helps model ambient illumination from all directions.
- HDR Cubemap: provides specular highlights and reflections.
- Environmental HDR provides developers with three APIs to replicate real world lighting when using the back-facing camera:
- Add
ArImage_*methods to access CPU image data not through Android NDK.
Deprecations
ArImage_getNdkImage(const ArImage* image, const AImage** out_ndk_image)(NDK) is now deprecated. Use the otherArImage_*functions to obtain image data.
Other changes
- Java
Configsetters now returnthis, which allows method call chaining:session.configure(new Config(session).setA(..).setB(..));. - Augmented Faces runs faster and consumes less power.
Bug fixes
- Previously, enabling Cloud Anchor mode with the front-facing (selfie) camera did not return an unsupported configuration error. This is now fixed.
ARCore SDK for Android v1.9.1
Note: this is an ARCore APK-only release (version 1.9.1).
SDK version remains unchanged (version 1.9.0).
Bug fixes
- Updates ARCore APK to add support for Oneplus 3T and Samsung A60. For a complete list of supported devices, see the ARCore Supported Devices page.
ARCore SDK for Android v1.9.0
Breaking changes/behavioral changes
- When using a Session that is configured to use a front-facing (selfie) camera,
getSupportedCameraConfigs()will return one or more supported camera configs. For apps built using ARCore SDK 1.7.0 or 1.8.0, three identical camera configs were returned when using the front-facing (selfie) camera. getMeshTriangleIndices(…)now returns aShortBufferinstead of aCharBuffer.- Augmented Images are now tracked once they leave the camera frame. See "New APIs and capabilities" below for details.
New APIs and capabilities
- ARCore can now track moving Augmented Images. Previously, images were assumed to not move, and their pose would only be updated infrequently.
- ARCore can continue tracking images even though they are longer visible to the camera. Use
AugmentedImage#getTrackingMethod()(Java) orArAugmentedImage_getTrackingMethod()(NDK) to determine whether the image is currently being tracked by the camera (FULL_TRACKING), or is being tracked based on its last known pose (LAST_KNOWN_POSE). - Adds the Scene Viewer feature, which can be used to view 3D models in AR from most Android browsers with the
<model-viewer>web component.
Other changes
- Removes the check for the device tracking state in augmented_image_c and augmented_image_java samples. Augmented Images now can track images when the device tracking state is not tracking.
Bug fixes
- Fixed a
NullPointerExceptionthat was thrown when setting a nullAugmentedImageDatabasein the session configuration. - Fixed issue causing face meshes to only render on Android O (API Level 26) and above devices, due to mesh data being returned with incorrect byte order.
ARCore SDK for Android v1.8.0
Behavioral changes
- Auto Focus has been enabled by default in augmented_image_c and augmented_image_java samples, to improve with tracking of small, nearby image targets on devices where the ARCore camera supports Auto Focus.
Bug fixes
- Issue #683, Issue #729:
- Fixed CPU Image Access on Xiaomi devices: Mi 8, Mi 8 SE, Mi Mix 2S, Mi Mix 3 and Pocophone F1.
ARCore SDK for Android v1.7.0
User privacy requirements
- Updated
README.mdto clarify ARCore's User Privacy Requirements.
Breaking changes
None.
New APIs and capabilities
- New
Camera.getTrackingFailureReason()(Java) andArCamera_getTrackingFailureReason()(NDK) method that returns the reason for AR tracking failure when tracking state isPAUSED. - New
Frame.transformCoordinates2d(…)(Java) andArFrame_transformCoordinates2d(…)(NDK) method that transforms a list of 2D coordinates from one 2D coordinate system to another 2D coordinate system. - New Session constructors
Session(Context, Set<Session.Feature>)(Java) andArSession_createWithFeatures()(NDK) enable new capabilities, starting with: - Front-facing Camera & Augmented Faces
- Apps can now enable Augmented Faces with the front-facing (selfie) camera by requesting the
FRONT_CAMERAfeature when creating a session. - New methods
CameraConfig.getFacingDirection()(Java) andArCameraConfig_getFacingDirection()(NDK) let an app check if it is using the front-facing camera. - Note: Motion tracking, all types of anchors, Augmented Images, and plane detection are not available when using the front-facing camera.
- New method
Config.setAugmentedFaceMode(…)lets an app enable Augmented Faces. - New Trackable
AugmentedFaceclass to detect a face, determine region poses and generate a 3D face mesh. AugmentedFace(Java) class and a set ofArAugmentedFace_*(NDK) methods provide getters to request the center pose, region poses, vertices, normals, and triangle indices of the 3D face mesh.
- Apps can now enable Augmented Faces with the front-facing (selfie) camera by requesting the
- Shared Camera access (Java-only)
- Apps can now share camera control with ARCore by requesting the
SHARED_CAMERAfeature when creating a session. This feature is primarily intended to allow fast switching between camera-only (non-AR) and ARCore modes. - New
shared_camera_javaexample that demonstrates how to share camera access with ARCore. - New
SharedCameraclass to enable apps to share Camera2 API access with ARCore.- Note:
Frame.getImageMetadata()throwsIllegalStateExceptionwhen using a shared camera session. Instead, subscribe to the camera callback directly by usingSharedCamera.setCaptureCallback(…), and useFrame.getAndroidCameraTimestamp()to correlate frame to metadata.
- Note:
- New method
Session.getSharedCamera()gets the shared camera object for the session. - New method
Frame.getAndroidCameraTimestamp()returns the Android camera timestamp of the image.
- Apps can now share camera control with ARCore by requesting the
- Additional Java-only changes:
- New method
Session.close()allows for explicit release of resources held by ARCore session for better resource control. PointCloudnow implementsCloseable, allowing it to be used with Java try-with-resources and Kotlinuseblocks.
- New method
Deprecations
Frame.transformDisplayUvCoords(Java) andArFrame_transformDisplayUvCoords(NDK) is now deprecated. Please useframe.transformCoordinates2d(Coordinates2d.VIEW_NORMALIZED, …, Coordinates2d.TEXTURE_NORMALIZED, …)(Java) andArFrame_transformCoordinates2d(…, AR_COORDINATES_2D_VIEW_NORMALIZED, …, AR_COORDINATES_2D_TEXTURE_NORMALIZED, …)(NDK) instead.
Bug fixes
- Issue #630:
- Java:
Session.createAnchor()andTrackable.createAnchor()will now correctly throwSessionPausedExceptionandNotTrackingExceptionwhen appropriate instead ofFatalException. - C:
ArSession_acquireNewAnchor()andArTrackable_acquireNewAnchor()will now correctly returnAR_ERROR_SESSION_PAUSEDandAR_ERROR_NOT_TRACKINGwhen appropriate instead ofAR_ERROR_FATAL.
- Java:
ARCore SDK for Android v1.6.0
License and terms of service changes
- Binaries in the SDK are now covered by the Google APIs Terms of Service. See
LICENSEfile for details.
Breaking & behavioral changes
- The behavior of
Camera.getPose()(Java) andArCamera_getPose()(C) have changed. See "Bug fixes" below for details. - Java:
new Session()now correctly declares that it can throwUnavailableDeviceNotCompatibleException. See "Bug fixes" below for details. - The middle CPU image resolution returned by
Session.getSupportedCameraConfigs()(Java) andArSession_getSupportedCameraConfigs()(C) is no longer guaranteed to be 1280 x 720. It now varies by device.
Other changes
- Improved documentation of prerequisites for
new Session()(Java) andArSession_create()(C).
Bug fixes
Camera.getPose()(Java) andArCamera_getPose()(C) now correctly return the camera pose oriented with the physical image sensor as originally intended. Previously this method had returned a camera rotated to be aligned with Android sensor coordinates. This change only affects applications using the ARCore v1.6 SDK and later.- Java:
new Session()now correctly declares that it can throwUnavailableDeviceNotCompatibleException. This is not a behavioral change as this exception has been possible from native code since ARCore 1.0. - Issue #563: Resolved an crash with a log message "AssetManager has been finalized" that could occur on some devices.
- Issue #630: Fixed a bug where multiple points in a point cloud could use the same ID.
- C: Issue #625:
ArSession_getAllTrackables()now clears the input list as documented. - Fixed issue where ARCore would fail to track on certain devices if the middle CPU image resolution was set. The middle CPU image resolution is no longer guaranteed to be 1280 x 720, see "Breaking changes" above.