react native - error while fetching build tools files

后端 未结 3 1124
伪装坚强ぢ
伪装坚强ぢ 2021-01-21 11:44

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

相关标签:
3条回答
  • 2021-01-21 12:09

    Add the following line in your project`s gradle file

    allprojects {
        repositories {
            .....
            ......
            maven { url 'https://maven.google.com' }  //  Add this line.
            ......
        } }
    
    0 讨论(0)
  • 2021-01-21 12:09

    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.

    0 讨论(0)
  • 2021-01-21 12:17

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

    0 讨论(0)
提交回复
热议问题