簡體   English   中英

React Native中缺少依賴項

[英]Missing dependency in React Native

我正在嘗試為Android構建應用程序,但整個下午都收到此錯誤消息:

A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
   > Configuration with name 'default' not found.

我想,只需要運行一些更新即可。 因此,從應用程序的根源開始,我嘗試過:

yarn

接着

npm i

cup all -y

但是問題仍然存在。

settings.gradle:

rootProject.name = 'MyAppName'

include ':react-native-firestack'
project(':react-native-firestack').projectDir = new File(rootProject.projectDir, './node_modules/:react-native-firestack/android/')

include ':react-native-fbsdk'
project(':react-native-fbsdk').projectDir = new File(rootProject.projectDir, './node_modules/:react-native-fbsdk/android/')

include ':app'

在安裝react-native-fbsdk之后是否運行了此命令( react-native run-android )?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM