react-native-static-server icon indicating copy to clipboard operation
react-native-static-server copied to clipboard

Cannot choose between the following variants of com.facebook.react:react-native:0.69.1

Open thanhnvpk01168 opened this issue 3 years ago • 1 comments

"react-native": "0.69.1" "react-native-static-server": "^0.5.0"

Can you help me with this error

  • What went wrong: A problem occurred configuring project ':react-native-static-server'.

Could not resolve all files for configuration ':react-native-static-server:implementation'. Could not resolve com.facebook.react:react-native:+. Required by: project :react-native-static-server > Cannot choose between the following variants of com.facebook.react:react-native:0.69.1: - debugVariantDefaultRuntimePublication - releaseVariantDefaultRuntimePublication All of them match the consumer attributes: - Variant 'debugVariantDefaultRuntimePublication' capability com.facebook.react:react-native:0.69.1: - Unmatched attributes: - Provides com.android.build.api.attributes.BuildTypeAttr 'debug' but the consumer didn't ask for it - Provides org.gradle.category 'library' but the consumer didn't ask for it - Provides org.gradle.dependency.bundling 'external' but the consumer didn't ask for it - Provides org.gradle.libraryelements 'aar' but the consumer didn't ask for it - Provides org.gradle.status 'release' but the consumer didn't ask for it - Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it - Variant 'releaseVariantDefaultRuntimePublication' capability com.facebook.react:react-native:0.69.1: - Unmatched attributes: - Provides com.android.build.api.attributes.BuildTypeAttr 'release' but the consumer didn't ask for it - Provides org.gradle.category 'library' but the consumer didn't ask for it - Provides org.gradle.dependency.bundling 'external' but the consumer didn't ask for it - Provides org.gradle.libraryelements 'aar' but the consumer didn't ask for it - Provides org.gradle.status 'release' but the consumer didn't ask for it - Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 6s 6 actionable tasks: 6 up-to-date error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command

thanhnvpk01168 avatar Jul 09 '22 10:07 thanhnvpk01168

@thanhnvpk01168 did you manage to fix the above issue?

parthvakharia avatar Nov 25 '22 08:11 parthvakharia