反应原生:0.62.0
react-native-camera: git+ https://git@github.com/react-native-community/react-native-camera.git
我的应用程序使用 react-native run-android 运行良好,但是当我尝试生成 .apk 时,它失败并出现以下错误
错误信息:
FAILURE: Build failed with an exception.native-camera:mlkitReleaseCompileClasspath > Resolve dependencies of :react-native-camera:mlkitReleaseRu * 出了什么问题:无法确定任务 ':react-native-camera:compileMlkitReleaseJavaWithJavac' 的依赖关系。
无法解析配置“:react-native-camera:mlkitReleaseCompileClasspath”的所有任务依赖项。找不到 com.google.firebase:firebase-ml-vision:12.0.1。要求:项目:react-native-camera 找不到 com.google.firebase:firebase-ml-vision-face-model:12.0.1。要求:项目:react-native-camera
尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。
在https://help.gradle.org获得更多帮助
此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 7.0 不兼容。使用“--warning-mode all”显示各个弃用警告。请参阅https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings