Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29741

ReactNative Could not find com.android.tools.build:gradle:4.1.1

$
0
0

i'm working on a react-native project V 0.59.5i'm trying to uprgrade it to V 0.63.3i was trying to solve problems poping in android studio, i updated the android studio to 4.1.1 and then there was a message suggesting to upgrade gradle to version 4.1.1, i was using 3.5.3.

i upgraded the grale version and after that i have an error that i cannot solve and i couldn't find useful anser for it. i tried removing cache folder in .gradle folder and restarted android studio but didn't help. changing the gradle version didn't help either.this is the error:

Could not find com.android.tools.build:gradle:4.1.1.Searched in the following locations:  - https://jcenter.bintray.com/com/android/tools/build/gradle/4.1.1/gradle-4.1.1.pomIf the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.Required by:    project :react-native-fsAdd google Maven repository and sync projectOpen File

i manually changed the gradle to what it was before.

in my gradle-wrapper.properties i have :

distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip

and in build.grale file i have :

classpath('com.android.tools.build:gradle:3.5.3')

Viewing all articles
Browse latest Browse all 29741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>