[英]i am trying to create an app that can connect with metamask using walletconnect/react-native-dapp but i get this problem
i am trying to create an app that can connect with metamask using walletconnect/react-native-dapp but i get this problem.我正在尝试创建一个可以使用 walletconnect/react-native-dapp 与 metamask 连接的应用程序,但我遇到了这个问题。
Could not find method compile() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.在 org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler 类型的对象上找不到参数 [com.facebook.react:react-native:+] 的方法 compile()。
for anyone encountering this down the road... Here's the solution.对于任何遇到这种情况的人......这是解决方案。
React native dependencies in node_modules sometimes use outdated syntax such as the error above "compile" when it should be "implementation" depending on your RN version. node_modules 中的 React 本机依赖项有时会使用过时的语法,例如“编译”上方的错误,而根据您的 RN 版本,它应该是“实现”。 I'd use the npm package patch-package
or stack overflow how to properly modify dependencies (node_modules) to persist once you install another package.我会使用 npm 包patch-package
或 stack overflow 如何正确修改依赖项(node_modules)以在安装另一个包后持久存在。
I ran into this same issue with the same "walletconnect" amoung other errors but finally got it running - keep debugging.我在其他错误中遇到了相同的“walletconnect”问题,但最终让它运行 - 继续调试。 You got this.你明白了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.