Closed fluvios closed 6 years ago
+1 I'm facing the same issue, how can this be fixed?
@Marswang92 after i check some solution, the problem is sequence of repositories in build.gradle.
this my sequence
allprojects {
repositories {
maven { url "https://jitpack.io" }
mavenCentral()
mavenLocal()
maven {
url "https://maven.google.com"
}
maven { url "https://jcenter.bintray.com" }
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
also, the dependencies in app build.gradle its like this
dependencies {
compile project(':react-native-pusher-push-notifications')
compile project(':react-native-push-notification-ce')
compile project(':react-native-splash-screen')
compile project(':react-native-vector-icons')
compile project(':react-native-share')
compile project(':react-native-image-picker')
compile project(':react-native-google-signin')
compile project(':react-native-code-push')
compile project(':react-native-pdf')
compile project(':react-native-fetch-blob')
compile(project(':react-native-maps')){
exclude group: 'com.google.android.gms', module: 'play-services-base'
exclude group: 'com.google.android.gms', module: 'play-services-maps'
exclude group: 'com.google.android.gms', module: 'play-services-gcm'
}
compile fileTree(dir: "libs", include: ["*.jar"])
compile 'com.android.support:support-v4:26.0.2'
compile 'com.android.support:appcompat-v7:26.0.2'
compile 'com.google.android.gms:play-services-base:+'
compile 'com.google.android.gms:play-services-maps:+'
compile 'com.google.android.gms:play-services-gcm:+'
compile "com.google.firebase:firebase-messaging:+"
compile "com.facebook.react:react-native:+" // From node_modules
}
and add this in the end of file in app build.gradle
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '26.0.2'
}
}
}
}
hello, i have this issues
when i go to that library, the file is 404. so how i solve this depedency ?