React-native-fast-image: Could not find com.android.tools.build:gradle:3.4.0

Created on 6 May 2020  路  3Comments  路  Source: DylanVann/react-native-fast-image

Describe the bug
When I try to run the project (npx react-native run-android) after installing react-native-fast-image it throws me this error

To Reproduce
Steps to reproduce the behavior if possible, or a link to a reproduction repo:

  1. npm install react-native run-android --save
  2. npx react-native run-android

Expected behavior
expected the application to run successfully

Screenshots
image

Dependency versions

bug

Most helpful comment

@HaswinVidanage I do see that Jcenter was down earlier today.

https://status.bintray.com/
https://twitter.com/bintray/status/1371487185850015750?s=20

I have the same issue, but also there is a Received status code 502 from server: Bad Gateway message attached to the end, I'm assuming this is related.

All 3 comments

To solve this I had to modify the build.gradle and change the line:
classpath "com.android.tools.build:gradle:3.4.0"
to
classpath ("com.android.tools.build:gradle:3.5.2")

But I would like this version to be included by default!!!

getting the same error but changing to classpath ("com.android.tools.build:gradle:3.5.2") didn't work for me

@HaswinVidanage I do see that Jcenter was down earlier today.

https://status.bintray.com/
https://twitter.com/bintray/status/1371487185850015750?s=20

I have the same issue, but also there is a Received status code 502 from server: Bad Gateway message attached to the end, I'm assuming this is related.

Was this page helpful?
0 / 5 - 0 ratings