Skip to content Skip to sidebar Skip to footer

React Native - Error While Fetching Build Tools Files

I am unable to build my android app using react-native run-android, because I get following error. Yesterday everything worked fine. Do you know where could be the problem? A probl

Solution 1:

Add the following line in your project`s gradle file

allprojects {
    repositories {
        .....
        ......
        maven { url 'https://maven.google.com' }  //  Add this line.
        ......
    } }

Solution 2:

The only solution that worked for me was to go to Build --> Build Types, and add google() to both repos

Solution 3:

For those who have the same error, try adding this to App Builde.gradle :

android {
    //the rest of the code above

    lintOptions {
       disable'MissingTranslation'
    }
}

I had the same problem, and this, for whatever reason, worked for me.

Post a Comment for "React Native - Error While Fetching Build Tools Files"