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

Build Error: Unable to Find Required Dependencies in Android Project #3

Open
ankitkumar1302 opened this issue Aug 19, 2024 · 1 comment

Comments

@ankitkumar1302
Copy link

Build Failure: Unable to Resolve Dependencies in :app:debugRuntimeClasspath

Summary

I am experiencing build failures in my Android project due to unresolved dependencies in the :app:debugRuntimeClasspath configuration. The errors occur during the tasks :app:desugarDebugFileDependencies and :app:mergeDebugNativeLibs.

Details

Task 1: :app:desugarDebugFileDependencies

Error Message:

Execution failed for task ':app
'.

Could not resolve all files for configuration ':app
'.
Could not find io.fotoapparat:fotoapparat:2.7.0.
Searched in the following locations:

javascript
Copy code

Task 2: :app:mergeDebugNativeLibs

Error Message:

Execution failed for task ':app
'.

Could not resolve all files for configuration ':app
'.
Could not find io.fotoapparat:fotoapparat:2.7.0.
Searched in the following locations:

markdown
Copy code

Steps to Reproduce

  1. Clone the repository.
  2. Attempt to build the project using Gradle.
  3. The build fails during the :app:desugarDebugFileDependencies and :app:mergeDebugNativeLibs tasks.

Expected Behavior

The build should succeed without any issues, and all dependencies should be resolved correctly.

Actual Behavior

The build fails due to unresolved dependencies, specifically for the following libraries:

  • io.fotoapparat:fotoapparat:2.7.0
  • com.royrodriguez:transitionbutton:0.2.0
  • com.github.ybq:Android-SpinKit:1.4.0

Additional Information

  • I have verified that the mentioned dependencies are correctly specified in the build.gradle file.
  • I have tried cleaning the project and rebuilding it, but the issue persists.
  • Deprecated Gradle features are being used, which might cause issues with Gradle 8.0 compatibility.

Environment

  • Gradle Version: 7.5
  • Android Studio Version: [Insert Version Here]
  • Operating System: [Insert OS Version Here]

Potential Solutions

  1. Verify the availability of the mentioned dependencies in the specified repositories.
  2. Consider alternative repositories or dependencies if the current ones are no longer available.

Logs

For more details, here are the logs:

  • Run with --stacktrace for more detailed logs.
  • Run with --info or --debug for additional output.
  • Use --scan for full build insights.

How to solve this error.

@andyfaceplugin
Copy link
Member

Hi Can we do a live session to resolve your issue?

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

No branches or pull requests

2 participants