question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to sync 0.40.2 with Gradle 7.4.2

See original GitHub issue

🐛 Describe the bug

Execution failed for task ':buildSrc:generateExternalPluginSpecBuilders'.
> Could not resolve all files for configuration ':buildSrc:compileClasspath'.
   > Could not find de.fayard.refreshVersions:de.fayard.refreshVersions.gradle.plugin:0.40.2.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/de/fayard/refreshVersions/de.fayard.refreshVersions.gradle.plugin/0.40.2/de.fayard.refreshVersions.gradle.plugin-0.40.2.pom
       - https://repo.maven.apache.org/maven2/de/fayard/refreshVersions/de.fayard.refreshVersions.gradle.plugin/0.40.2/de.fayard.refreshVersions.gradle.plugin-0.40.2.pom
     Required by:
         project :buildSrc

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

⚠️ Current behavior

  1. Bumping 0.40.1 to 0.40.2 (works)
  2. When bumping to Gradle 7.4.2, and sync project, crash occurred

✅ Expected behavior

Should able to sync (no crash)

💣 Steps to reproduce

When bumping to Gradle 7.4.2, and sync project

📱 Tech info

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
LouisCADcommented, Jun 30, 2022

100% this is because you set repos without including gradlePluginPortal() for both the root projet and for buildSrc.

0reactions
jmfayardcommented, Oct 13, 2022

awesome, thanks for telling me @mochadwi

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to sync 0.40.2 with Gradle 7.4.2 - PullAnswer
Unable to sync 0.40.2 with Gradle 7.4.2 · Describe the bug · ⚠️ Current behavior · ✓ Expected behavior · Steps to reproduce...
Read more >
Gradle 7.4.2 Release Notes
This is the second patch release for Gradle 7.4. It fixes the following issues: #20272 Tasks that show up later on the command...
Read more >
Add support for Gradle 7.4 Version Catalogs #333 - GitHub
Gradle 7.0 introduced the "centralized declaration of dependencies". ... Unable to sync 0.40.2 with Gradle 7.4.2 #557.
Read more >
Gradle doesn't sync in Android Studio - Stack Overflow
Option 1 · Install gradle manually on gradle official website · Extract gradle.zip file (remember the location) · Open android studio > file...
Read more >
Fix Error: Could not install Gradle distribution from ... - YouTube
How to fix error : Could not install Gradle distribution from 'https://services. gradle.org/distributions/ gradle -7.0.2-bin.zip' in Android ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found