Reputation: 470
it seems that I got this problem when I try to run the app
Upvotes: 38
Views: 173716
Reputation: 441
Changed the buildToolsVersion from "33.0.0" to "33.0.2" worked for me.
Upvotes: 0
Reputation: 1
I have deleted this in the build.gradle module and it worked.
maven { url "https://maven.google.com" }
Upvotes: 0
Reputation: 684
Change jcenter()
to mavenCentral()
in project level build.gradle
Upvotes: 5
Reputation: 426
Make sure you have the right version of Android SDK Platform-tools installed. Your project might be configured for a different version. To do this got to Settings>android sdk> sdk tools > show package details, then choose the version compatible with your project and install it.
Upvotes: 1
Reputation: 3100
I also encountered this error.
This error resolved by updating Android Support Repository.
Another way to solve this error is go to your build.gradle
file and check for warnings related to support version dependencies. then look for hint, make change as it suggested.
In my case this error caused by support dependencies:-
compile 'com.google.android.gms:play-services-maps:9.0.0'
and I changed to :-
compile 'com.google.android.gms:play-services-maps:10.0.0'
Upvotes: 3
Reputation: 615
For me it was only a pending update of the Google Repository.Mine Android Support Repository was already updated, so i update Google repository and it works for me
Update the Google Repository!
Upvotes: 2
Reputation: 18833
This worked for me while opening Android Studio to resolve the dependencies
allprojects {
repositories {
mavenLocal()
jcenter()
maven {
url 'https://maven.google.com'
}
maven {
url "https://jitpack.io"
}
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed
from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
Upvotes: 5
Reputation: 10256
For me it was only a pending update of the Android Support Repository
.
Update the Android Support Repository
!
Upvotes: 1
Reputation: 222
Install Android Support Repository
in SDK Manager.
Add dedependencies to build.gradle file.
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'
Upvotes: 7
Reputation: 1039
This can happen when there is an error in an update. To fix it open android sdk manager and:
Upvotes: 37