gpt4 book ai didi

java - 找不到 androidx.camera :camera-view

转载 作者:行者123 更新时间:2023-12-04 23:57:32 32 4
gpt4 key购买 nike

我正在开发一个基本的自定义相机应用这些是我的依赖

// 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"

相机版本 = '1.0.0'

出现以下错误,如果我删除相机 View 依赖项,它工作正常,但我不能,因为我的自定义相机应用程序需要它。

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.pomRequired by:project :app

最佳答案

因为 Morrison Chang 已经帮助您解决了当前的问题。每当您将来遇到任何此类 android 库的错误时,我只想添加一些提示。

关于java - 找不到 androidx.camera :camera-view,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67735781/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com