找不到 androidx.camera:camera-view
Could not find androidx.camera:camera-view
我正在开发一个基本的自定义相机应用程序
这些是我的依赖
// CameraX core library dependency
implementation "androidx.camera:camera-camera2:$camera_version"
// CameraX Lifecycle dependency
implementation "androidx.camera:camera-lifecycle:$camera_version"
// CameraX View dependency
implementation "androidx.camera:camera-view:$camera_version"
camera_version = '1.0.0'
出现以下错误,如果我删除相机视图依赖项,它工作正常,但我不能,因为我的自定义相机应用程序需要它。
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find androidx.camera:camera-view.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/androidx/camera/camera-view/1.0.0/camera-view-1.0.0.pom
- https://repo.maven.apache.org/maven2/androidx/camera/camera-view/1.0.0/camera-view-1.0.0.pom
Required by:
project :app
因为 Morrison Chang 已经帮您解决了当前的问题。
我只是想在以后任何 android 的库出现此类错误时添加一些提示。
- 搜索 google 的 maven 存储库 https://maven.google.com/ to see if the version you are looking for is even the correct one or what is the latest version of the library exists. like in your case https://maven.google.com/web/index.html?q=camera#androidx.camera:camera-view
- https://mvnrepository.com/ 上仍然有少数库可用,您可以在其中查看库的版本
我正在开发一个基本的自定义相机应用程序 这些是我的依赖
// CameraX core library dependency
implementation "androidx.camera:camera-camera2:$camera_version"
// CameraX Lifecycle dependency
implementation "androidx.camera:camera-lifecycle:$camera_version"
// CameraX View dependency
implementation "androidx.camera:camera-view:$camera_version"
camera_version = '1.0.0'
出现以下错误,如果我删除相机视图依赖项,它工作正常,但我不能,因为我的自定义相机应用程序需要它。
Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not find androidx.camera:camera-view. Searched in the following locations: - https://dl.google.com/dl/android/maven2/androidx/camera/camera-view/1.0.0/camera-view-1.0.0.pom - https://repo.maven.apache.org/maven2/androidx/camera/camera-view/1.0.0/camera-view-1.0.0.pom Required by: project :app
因为 Morrison Chang 已经帮您解决了当前的问题。 我只是想在以后任何 android 的库出现此类错误时添加一些提示。
- 搜索 google 的 maven 存储库 https://maven.google.com/ to see if the version you are looking for is even the correct one or what is the latest version of the library exists. like in your case https://maven.google.com/web/index.html?q=camera#androidx.camera:camera-view
- https://mvnrepository.com/ 上仍然有少数库可用,您可以在其中查看库的版本