Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.Use '--warning-mode all' to show the individual deprecation warnings.See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings
FAILURE: Build failed with an exception.
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-camera. Required by: project :app Cannot choose between the following variants of project :react-native-camera: - generalDebugRuntimeElements - mlkitDebugRuntimeElements All of them match the consumer attributes: - Variant 'generalDebugRuntimeElements' capability camera2:react-native-camera:unspecified: - Unmatched attributes: - Found com.android.build.api.attributes.VariantAttr 'generalDebug' but wasn't required. - Found react-native-camera 'general' but wasn't required. - Compatible attributes: - Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'. - 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 'mlkitDebugRuntimeElements' capability camera2:react-native-camera:unspecified: - Unmatched attributes: - Found com.android.build.api.attributes.VariantAttr 'mlkitDebug' but wasn't required. - Found react-native-camera 'mlkit' but wasn't required. - Compatible attributes: - Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'. - 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'.
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
BUILD FAILED in 25s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
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-camera. Required by: project :app Cannot choose between the following variants of project :react-native-camera: - generalDebugRuntimeElements - mlkitDebugRuntimeElements All of them match the consumer attributes: - Variant 'generalDebugRuntimeElements' capability camera2:react-native-camera:unspecified: - Unmatched attributes: - Found com.android.build.api.attributes.VariantAttr 'generalDebug' but wasn't required. - Found react-native-camera 'general' but wasn't required. - Compatible attributes: - Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'. - 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 'mlkitDebugRuntimeElements' capability camera2:react-native-camera:unspecified: - Unmatched attributes: - Found com.android.build.api.attributes.VariantAttr 'mlkitDebug' but wasn't required. - Found react-native-camera 'mlkit' but wasn't required. - Compatible attributes: - Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'. - 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'.
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
BUILD FAILED in 25s
at makeError (C:\MyAssignments\camera2\node_modules\execa\index.js:174:9)at C:\MyAssignments\camera2\node_modules\execa\index.js:278:16at processTicksAndRejections (internal/process/task_queues.js:93:5)