it seems that I got this problem when I try to run the app
This can happen when there is an error in an update. To fix it open android sdk manager and:
"Build > Clean Project" worked for me
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'
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'
For me it was only a pending update of the Android Support Repository
.
Update the Android Support Repository
!
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"
}
}
}