无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系 [英] Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'

查看:140
本文介绍了无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的本机应用程序中,这些错误在安装 react-navigationreact-native-gesture-handler

In my react native app these errors is showing after installing react-navigation and react-native-gesture-handler

无法确定任务':app:compileDebugJavaWithJavac'的依赖关系.
无法解析配置:app:debugCompileClasspath"的所有任务依赖项.
无法解析项目:react-native-gesture-handler.需要:项目 :app
无法找到项目的匹配配置 :react-native-gesture-handler: 可使用的配置都没有属性.

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not resolve project :react-native-gesture-handler. Required by: project :app
Unable to find a matching configuration of project :react-native-gesture-handler: Non e of the consumable configurations have attributes.

推荐答案

尝试通过运行以下命令将 react-native-gesture-handler 链接到 react-native:

try linking react-native-gesture-handler to react-native by running this command:

react-native link react-native-gesture-handler

这篇关于无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆