Skip to content

Could not resolve all dependencies for configuration #3311

@fitramela

Description

@fitramela

Build/Submit details page URL

No response

Summary

while build -p android --profile production

Running 'gradlew :app:assembleRelease' in /home/expo/workingdir/build/android
Downloading https://services.gradle.org/distributions/gradle-8.10.2-all.zip
10%.
20%.
30%.
40%.
50%.
60%.
70%.
80%.
90%.
100%
Welcome to Gradle 8.10.2!
Here are the highlights of this release:

Task :gradle-plugin:shared:checkKotlinGradlePluginConfigurationErrors
Task :gradle-plugin:settings-plugin:checkKotlinGradlePluginConfigurationErrors
Task :gradle-plugin:settings-plugin:pluginDescriptors
Task :gradle-plugin:settings-plugin:processResources
Task :gradle-plugin:shared:processResources NO-SOURCE
Task :gradle-plugin:shared:compileKotlin
Task :gradle-plugin:shared:compileJava NO-SOURCE
Task :gradle-plugin:shared:classes UP-TO-DATE
Task :gradle-plugin:shared:jar
Task :gradle-plugin:settings-plugin:compileKotlin
Task :gradle-plugin:settings-plugin:compileJava NO-SOURCE
Task :gradle-plugin:settings-plugin:classes
Task :gradle-plugin:settings-plugin:jar
Task :gradle-plugin:react-native-gradle-plugin:checkKotlinGradlePluginConfigurationErrors
Task :expo-dev-launcher-gradle-plugin:checkKotlinGradlePluginConfigurationErrors
Task :expo-dev-launcher-gradle-plugin:pluginDescriptors
Task :expo-dev-launcher-gradle-plugin:processResources
Task :gradle-plugin:react-native-gradle-plugin:pluginDescriptors
Task :gradle-plugin:react-native-gradle-plugin:processResources
Task :gradle-plugin:react-native-gradle-plugin:compileKotlin
Task :gradle-plugin:react-native-gradle-plugin:compileJava NO-SOURCE
Task :gradle-plugin:react-native-gradle-plugin:classes
Task :gradle-plugin:react-native-gradle-plugin:jar
Task :expo-dev-launcher-gradle-plugin:compileKotlin
Task :expo-dev-launcher-gradle-plugin:compileJava NO-SOURCE
Task :expo-dev-launcher-gradle-plugin:classes
Task :expo-dev-launcher-gradle-plugin:jar
Configure project :app
ℹ️ Applying gradle plugin 'expo-dev-launcher-gradle-plugin' (expo-dev-launcher@5.0.35)
Configure project :expo
Using expo modules

  • expo-application (6.0.2)
  • expo-asset (11.0.5)
  • expo-clipboard (7.0.1)
  • expo-constants (17.0.8)
  • expo-crypto (14.0.2)
  • expo-dev-client (5.0.20)
    • expo-dev-launcher (5.0.35)
    • expo-dev-menu (6.0.25)
    • expo-file-system (18.0.12)
    • expo-font (13.0.4)
    • expo-image (2.0.7)
    • expo-json-utils (0.14.0)
    • expo-keep-awake (14.0.3)
    • expo-linear-gradient (14.0.2)
    • expo-linking (7.0.5)
    • expo-local-authentication (15.0.2)
    • expo-location (18.0.10)
    • expo-manifests (0.15.8)
    • expo-modules-core (2.2.3)
    • expo-notifications (0.29.14)
    • expo-secure-store (14.0.1)
    • expo-sharing (13.0.1)
    • expo-splash-screen (0.29.24)
    • expo-sqlite (15.1.4)
    • expo-system-ui (4.0.9)
    • expo-web-browser (14.0.2)
      FAILURE: Build failed with an exception.
  • What went wrong:
    Could not determine the dependencies of task ':app:lintVitalReportRelease'.

Could not resolve all dependencies for configuration ':app:releaseCompileClasspath'.
Could not resolve project :notifee_react-native.
Required by:
project :app
> No matching variant of project :notifee_react-native was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.6.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- No variants exist.
Could not resolve project :react-native-async-storage_async-storage.
Required by:
project :app
> No matching variant of project :react-native-async-storage_async-storage was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.6.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- No variants exist.
Could not resolve project :react-native-firebase_app.
Required by:
project :app
> No matching variant of project :react-native-firebase_app was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.6.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- No variants exist.
Could not resolve project :react-native-firebase_database.
Required by:
project :app
> No matching variant of project :react-native-firebase_database was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.6.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- No variants exist.
Could not resolve project :react-native-firebase_messaging.
Required by:
project :app
> No matching variant of project :react-native-firebase_messaging was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.6.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- No variants exist.
Could not resolve project :react-native-firebase_storage.
Required by:
project :app
> No matching variant of project :react-native-firebase_storage was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.6.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- No variants exist.
Could not resolve project :shopify_flash-list.
Required by:
project :app
> No matching variant of project :shopify_flash-list was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.6.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- No variants exist.
Could not resolve project :jail-monkey.
Required by:
project :app
> No matching variant of project :jail-monkey was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.6.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- No variants exist.
Could not resolve project :react-native-gesture-handler.
Required by:
project :app
> No matching variant of project :react-native-gesture-handler was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.6.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- No variants exist.
Could not resolve project :react-native-reanimated.
Required by:
project :app
> No matching variant of project :react-native-reanimated was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.6.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- No variants exist.
Could not resolve project :react-native-safe-area-context.
Required by:
project :app
> No matching variant of project :react-native-safe-area-context was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.6.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- No variants exist.
Could not resolve project :react-native-screens.
Required by:
project :app
> No matching variant of project :react-native-screens was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.6.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- No variants exist.
Could not resolve project :react-native-svg.
Required by:
project :app
>
No matching variant of project :react-native-svg was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.6.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- No variants exist.
Could not resolve project :react-native-vision-camera.
Required by:
project :app
> No matching variant of project :react-native-vision-camera was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.6.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- No variants exist.
Could not resolve project :react-native-webview.
Required by:
project :app
> No matching variant of project :react-native-webview was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.6.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- No variants exist.

  • Try:

Creating consumable variants is explained in more detail at https://docs.gradle.org/8.10.2/userguide/declaring_dependencies.html#sec:resolvable-consumable-configs.
Review the variant matching algorithm at https://docs.gradle.org/8.10.2/userguide/variant_attributes.html#sec:abm_algorithm.
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 4m 46s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
18 actionable tasks: 18 executed
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

Managed or bare?

android

Environment

production

Error output

No response

Reproducible demo or steps to reproduce from a blank project

error while build android

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reviewIssue is ready to be reviewed by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions