简体   繁体   English

我正在尝试创建一个可以使用 walletconnect/react-native-dapp 与 metamask 连接的应用程序,但我遇到了这个问题

[英]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 连接的应用程序,但我遇到了这个问题。

  • What went wrong: A problem occurred evaluating project ':app'.出了什么问题:评估项目“:app”时出现问题。

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.

相关问题 我正在尝试在React Native中构建测验应用程序,但导航到以前的报价时遇到问题 - I am trying to build a quiz app in react native, but I am having problem navigating to Previous quotes 我正在尝试构建 react native 应用程序,但出现此错误:react native version mismatch expo - I am trying to build react native app and I get this error: react native version mismatch expo 我在使用 Mac OS high sierra 尝试创建新的 React Native 项目时安装捆绑器时遇到问题 - I got a problem installing bundler when trying create my new react native project am using Mac OS high sierra 当我尝试执行以下代码时,我的 react-native 应用程序出现错误 - I get error on my react-native app while I am trying to execute following code 如何使用 npx 创建新的 React Native App? - How can i create new react native App using npx? 我在尝试运行 React Native 应用程序时遇到问题 - I have a problem when trying to run my react native app 嗨,我是 React Native 的新手,使用 Native-base 我正在尝试设计卡片视图 - Hi i am new to React Native, Using Native-base I am trying to design Card View 每次我使用 expo 运行我的 React 本机应用程序时都会遇到这个问题,我需要支持 - Am facing this problem each time i run my react native app using expo please i need support 我有一个 react native 组件,我正在尝试通过 connect 将该组件连接到 react-redux,但出现错误 - I have a react native component and i am trying to connect that component to react-redux through connect, but i am getting error 我可以在React Native中创建App的组件吗? - Can I Create Component of App in React Native?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM