camera-view 1.0.0-alpha22 requires camera-core version 1.1.0-alpha02

155 views
Skip to first unread message
Assigned to xi...@google.com by wuj...@google.com

Vikram Mittal

unread,
Feb 26, 2021, 1:52:58 AM2/26/21
to Android CameraX Discussion Group
Hello,

According to the documentation we have added the following dependencies:

"androidx.camera:camera-core:1.0.0-rc03",
"androidx.camera:camera-camera2:1.0.0-rc03",
"androidx.camera:camera-lifecycle:1.0.0-rc03",
"androidx.camera:camera-view:1.0.0-alpha22"

This creates a problem because the pom definition of camera-view:1.0.0-alpha22 has a strict dependency with camera-core version 1.1.0-alpha02 and what actually gets downloaded is the below:

Gradle: androidx.camera:camera-camera2:1.0.0-rc03@aar
Gradle: androidx.camera:camera-core:1.1.0-alpha02@aar
Gradle: androidx.camera:camera-lifecycle:1.1.0-alpha02@aar
Gradle: androidx.camera:camera-view:1.0.0-alpha22@aar

The above could create compatibility issues and in reality you end up using a version that is not the one referred in your build.gradle.

First question, does camera-view:1.0.0-alpha22 support camera-core:1.0.0-rc03?
Also, we are happy to use version 1.1.0-alpha02 but what about the stability compared with the RC version of 1.0.0?

Thank you
Best,
Vikram

Xi Zhang

unread,
Feb 26, 2021, 6:06:18 PM2/26/21
to Android CameraX Discussion Group, v.mi...@uqu.do
Thanks for reporting. This indeed an issue. We will find a solution and get back to you.

As for your question, yes, camera-view:1.0.0-alpha22 does support camera-core:1.0.0-rc03. That's the intended way. The stability of 1.1.0-alpha02 is not guaranteed. I would recommend using camera-view:1.0.0-alpha22 with camera-core:1.0.0-rc03.

Reply all
Reply to author
Forward
0 new messages