首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法解决项目:反应-本机-代码推送

无法解决项目:反应-本机-代码推送
EN

Stack Overflow用户
提问于 2022-10-13 08:40:10
回答 1查看 41关注 0票数 2

这是安装react-native-codepush后的问题。

代码语言:javascript
复制
Could not determine the dependencies of task ':app:mergeDebugAssets'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve project :react-native-code-push.
     Required by:
         project :app
      > No matching configuration of project :react-native-code-push was found. The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' but:
          - None of the consumable configurations have attributes.
EN

回答 1

Stack Overflow用户

发布于 2022-10-13 08:40:10

在你的android/settings.gradle里。

再加上这些行,你就可以了:

代码语言:javascript
复制
********************************************************

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

********************************************************

因为我无法在StackOverflow上找到任何解决方案。所以我想把这个写在这里。

这是最初的答案:https://github.com/microsoft/react-native-code-push/issues/1873

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74052830

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档