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
Add the following line in your project`s gradle file
allprojects {
repositories {
.....
......
maven { url 'https://maven.google.com' } // Add this line.
......
} }
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.
The only solution that worked for me was to go to Build --> Build Types, and add google() to both repos