这是安装react-native-codepush后的问题。
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.发布于 2022-10-13 08:40:10
在你的android/settings.gradle里。
再加上这些行,你就可以了:
********************************************************
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
https://stackoverflow.com/questions/74052830
复制相似问题