Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No matching variant of project :react-native-navigation 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', attribute 'com.android.build.api.attributes.ProductFlavor:RNN.reactNativeVersion' with value 'reactNative57_5', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.1.1' #7796

Closed
MasterAlex7 opened this issue Oct 13, 2023 · 3 comments

Comments

@MasterAlex7
Copy link

  • What went wrong:
    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-navigation.
Required by:
project :app
> No matching variant of project :react-native-navigation 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', attribute 'com.android.build.api.attributes.ProductFlavor:RNN.reactNativeVersion' with value 'reactNative57_5', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.1.1' but:
- Variant 'reactNative68DebugApiElements' capability ARKManagement:react-native-navigation:unspecified declares a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.1.1', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug':
- Incompatible because this component declares an API of a component, as well as attribute 'com.android.build.api.attributes.ProductFlavor:RNN.reactNativeVersion' with value 'reactNative68' and the consumer needed a runtime of a component, as well as attribute 'com.android.build.api.attributes.ProductFlavor:RNN.reactNativeVersion' with value 'reactNative57_5'
- Variant 'reactNative68DebugRuntimeElements' capability ARKManagement:react-native-navigation:unspecified declares a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.1.1', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug':
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.ProductFlavor:RNN.reactNativeVersion' with value 'reactNative68' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.ProductFlavor:RNN.reactNativeVersion' with value 'reactNative57_5'
- Variant 'reactNative68ReleaseApiElements' capability ARKManagement:react-native-navigation:unspecified declares a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.1.1':
- Incompatible because this component declares an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'com.android.build.api.attributes.ProductFlavor:RNN.reactNativeVersion' with value 'reactNative68' and the consumer needed a runtime of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.ProductFlavor:RNN.reactNativeVersion' with value 'reactNative57_5'
- Variant 'reactNative68ReleaseRuntimeElements' capability ARKManagement:react-native-navigation:unspecified declares a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.1.1':
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'com.android.build.api.attributes.ProductFlavor:RNN.reactNativeVersion' with value 'reactNative68' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.ProductFlavor:RNN.reactNativeVersion' with value 'reactNative57_5'

@github-actions
Copy link

We use the issue tracker exclusively for bug reports and feature requests.
This issue appears to be a general usage or support question.
Instead, please ask a question on Stack Overflow with the wix-react-native-navigation tag or on Discord.

@bhagatpratik07
Copy link

were you able to solve this?

@bhagatpratik07
Copy link

so I found a fix for anyone wondering

In the file app/build.gradle

Change this -
missingDimensionStrategy "RNN.reactNativeVersion", "reactNative57_5"

to

missingDimensionStrategy "RNN.reactNativeVersion", "reactNative71"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants