【发布时间】:2022-11-06 15:59:02
【问题描述】:
错误:命令失败:./gradlew app:installDebug -PreactNativeDevServerPort=8081
FAILURE:构建失败并出现异常。
其中:构建文件'/Users/....../node_modules/react-native-month-year-picker/android/build.gradle' 线路:115
出了什么问题:配置项目“:react-native-month-year-picker”时出现问题。
无法解析配置“:react-native-month-year-picker:implementation”的所有文件。 无法解析 com.facebook.react:react-native:+。 要求: 项目:react-native-month-year-picker > 无法在 com.facebook.react:react-native:0.71.0-rc.0 的以下变体之间进行选择: - debugVariantDefaultRuntimePublication -releaseVariantDefaultRuntimePublication 它们都符合消费者属性: - 变体“debugVariantDefaultRuntimePublication”功能 com.facebook.react:react-native:0.71.0-rc.0: - 无与伦比的属性: - 提供 com.android.build.api.attributes.BuildTypeAttr 'debug' 但 消费者没有要求 - 提供 org.gradle.category 'library' 但消费者没有要求 - 提供 org.gradle.dependency.bundling 'external' 但消费者没有要求 - 提供 org.gradle.libraryelements 'aar' 但消费者没有要求 - 提供 org.gradle.status 'release' 但消费者没有要求 - 提供 org.gradle.usage 'java-runtime' 但消费者没有要求
【问题讨论】:
标签: android react-native gradle