我正在我的本机应用程序中安装react-native-navigation。对于安装,我遵循了https://wix.github.io/react-native-navigation/#/docs/Installing中android应用的react-native-navigation的安装文档。运行命令react-native run-android
时,出现错误:
Could not determine the dependencies of task ':app:preDebugBuild'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not resolve project: react-native-navigation.
Required by:
project :app
> Unable to find a matching variant of project :react-native-navigation:
- Variant 'reactNative56DebugApiElements':
- Required RNN.reactNativeVersion 'reactNative55' and found incompatible value 'reactNative56'.
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
- Found com.android.build.api.attributes.VariantAttr 'reactNative56Debug' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
- Required org.gradle.usage 'java-runtime' and found incompatible value 'java-api'.
- Variant 'reactNative56DebugRuntimeElements':
- Required RNN.reactNativeVersion 'reactNative55' and found incompatible value 'reactNative56'.
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
- Found com.android.build.api.attributes.VariantAttr 'reactNative56Debug' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
- Required org.gradle.usage 'java-runtime' and found compatible value 'java-runtime'.
- Variant 'reactNative56ReleaseApiElements':
- Required RNN.reactNativeVersion 'reactNative55' and found incompatible value 'reactNative56'.
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found incompatible value 'release'.
- Found com.android.build.api.attributes.VariantAttr 'reactNative56Release' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
- Required org.gradle.usage 'java-runtime' and found incompatible value 'java-api'.
- Variant 'reactNative56ReleaseRuntimeElements':
- Required RNN.reactNativeVersion 'reactNative55' and found incompatible value 'reactNative56'.
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found incompatible value 'release'.
- Found com.android.build.api.attributes.VariantAttr 'reactNative56Release' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
- Required org.gradle.usage 'java-runtime' and found compatible value 'java-runtime'.
- Variant 'reactNative57DebugApiElements':
- Required RNN.reactNativeVersion 'reactNative55' and found incompatible value 'reactNative57'.
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
- Found com.android.build.api.attributes.VariantAttr 'reactNative57Debug' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
- Required org.gradle.usage 'java-runtime' and found incompatible value 'java-api'.
- Variant 'reactNative57DebugRuntimeElements':
- Required RNN.reactNativeVersion 'reactNative55' and found incompatible value 'reactNative57'.
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
- Found com.android.build.api.attributes.VariantAttr 'reactNative57Debug' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
- Required org.gradle.usage 'java-runtime' and found compatible value 'java-runtime'.
- Variant 'reactNative57ReleaseApiElements':
- Required RNN.reactNativeVersion 'reactNative55' and found incompatible value 'reactNative57'.
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found incompatible value 'release'.
- Found com.android.build.api.attributes.VariantAttr 'reactNative57Release' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
- Required org.gradle.usage 'java-runtime' and found incompatible value 'java-api'.
- Variant 'reactNative57ReleaseRuntimeElements':
- Required RNN.reactNativeVersion 'reactNative55' and found incompatible value 'reactNative57'.
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found incompatible value 'release'.
- Found com.android.build.api.attributes.VariantAttr 'reactNative57Release' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
- Required org.gradle.usage 'java-runtime' and found compatible value 'java-runtime'.
- Variant 'reactNative57_5DebugApiElements':
- Required RNN.reactNativeVersion 'reactNative55' and found incompatible value 'reactNative57_5'.
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
- Found com.android.build.api.attributes.VariantAttr 'reactNative57_5Debug' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
- Required org.gradle.usage 'java-runtime' and found incompatible value 'java-api'.
- Variant 'reactNative57_5DebugRuntimeElements':
- Required RNN.reactNativeVersion 'reactNative55' and found incompatible value 'reactNative57_5'.
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
- Found com.android.build.api.attributes.VariantAttr 'reactNative57_5Debug' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
- Required org.gradle.usage 'java-runtime' and found compatible value 'java-runtime'.
- Variant 'reactNative57_5ReleaseApiElements':
- Required RNN.reactNativeVersion 'reactNative55' and found incompatible value 'reactNative57_5'.
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found incompatible value 'release'.
- Found com.android.build.api.attributes.VariantAttr 'reactNative57_5Release' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
- Required org.gradle.usage 'java-runtime' and found incompatible value 'java-api'.
- Variant 'reactNative57_5ReleaseRuntimeElements':
- Required RNN.reactNativeVersion 'reactNative55' and found incompatible value 'reactNative57_5'.
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found incompatible value 'release'.
- Found com.android.build.api.attributes.VariantAttr 'reactNative57_5Release' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
- Required org.gradle.usage 'java-runtime' and found compatible value 'java-runtime'.
我添加了这些额外的文本行,因为StackOverflow警告我您的帖子主要是代码,请忽略此内容,对此我感到非常抱歉。