old version of gradle has missing dependencies
See original GitHub issueJust today, our build started failing with the following error:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':react-native-svg'.
> Could not resolve all artifacts for configuration ':react-native-svg:classpath'.
> Could not find com.android.tools:common:25.2.3.
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/common/25.2.3/common-25.2.3.pom
https://jcenter.bintray.com/com/android/tools/common/25.2.3/common-25.2.3.jar
https://maven.google.com/com/android/tools/common/25.2.3/common-25.2.3.pom
https://maven.google.com/com/android/tools/common/25.2.3/common-25.2.3.jar
Required by:
project :react-native-svg > com.android.tools.build:gradle:2.2.3 > com.android.tools.build:gradle-core:2.2.3 > com.android.tools.build:builder:2.2.3
project :react-native-svg > com.android.tools.build:gradle:2.2.3 > com.android.tools.build:gradle-core:2.2.3 > com.android.tools.build:builder:2.2.3 > com.android.tools.build:manifest-merger:25.2.3
project :react-native-svg > com.android.tools.build:gradle:2.2.3 > com.android.tools.build:gradle-core:2.2.3 > com.android.tools.build:builder:2.2.3 > com.android.tools.ddms:ddmlib:25.2.3
project :react-native-svg > com.android.tools.build:gradle:2.2.3 > com.android.tools.build:gradle-core:2.2.3 > com.android.tools.build:builder:2.2.3 > com.android.tools.analytics-library:shared:25.2.3
project :react-native-svg > com.android.tools.build:gradle:2.2.3 > com.android.tools.build:gradle-core:2.2.3 > com.android.tools.build:builder:2.2.3 > com.android.tools.analytics-library:tracker:25.2.3
project :react-native-svg > com.android.tools.build:gradle:2.2.3 > com.android.tools.build:gradle-core:2.2.3 > com.android.tools.build:builder:2.2.3 > com.android.tools:sdklib:25.2.3> com.android.tools.layoutlib:layoutlib-api:25.2.3
project :react-native-svg > com.android.tools.build:gradle:2.2.3 > com.android.tools.build:gradle-core:2.2.3 > com.android.tools.build:builder:2.2.3 > com.android.tools:sdklib:25.2.3> com.android.tools:dvlib:25.2.3
project :react-native-svg > com.android.tools.build:gradle:2.2.3 > com.android.tools.build:gradle-core:2.2.3 > com.android.tools.build:builder:2.2.3 > com.android.tools:sdklib:25.2.3> com.android.tools:repository:25.2.3
* 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 8s
Upgrading to gradle 3.2.1 fixes the issue. Will submit a PR soon.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
old version of gradle has missing dependencies #868 - GitHub
Just today, our build started failing with the following error: FAILURE: Build failed with an exception. * What went wrong: A problem ...
Read more >Downgrading versions and excluding dependencies
Gradle resolves any dependency version conflicts by selecting the latest version found in the dependency graph. Some projects might need to divert from...
Read more >How to check if Gradle dependency has new version?
Go to Android Studio -> Preferences -> Plugins (for Mac) and File -> Settings -> Plugins (for windows) and search “Check for Dependency...
Read more >Dependency version change in build.gradle does not update ...
I can import the new version from the JetGradle window, and IntelliJ refreshes the project structure, but the old version stays in the...
Read more >Android Gradle plugin release notes - Android Developers
If the specified plugin version has not been downloaded, Gradle downloads it the next time you build your project or click File >...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Published v8.0.9
When can we expect a new npm that contains this fix?