Richou / react-native-android-location-enabler

Display a GoogleMap like android popup to ask for user to enable location services if disabled
MIT License
209 stars 52 forks source link

Could not resolve all files for configuration #16

Closed Ternowy closed 6 years ago

Ternowy commented 6 years ago

Console now, i'm trying just run android

Could not find play-services-basement.aar (com.google.android.gms:play-services-basement:15.0.1). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-basement/15.0.1/play-services-basement-15.0.1.aar

Bahaviour 3 days before everything worked perfect, now we have such problem

khjde1207 commented 6 years ago

Change the order.

allprojects {
    repositories {
        mavenLocal() 
        google() //***************1
        jcenter() //***************2
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }

    }

}
Richou commented 6 years ago

I think, I must update some code, I'll do it asap.

Ternowy commented 6 years ago

Change the order.

allprojects {
    repositories {
        mavenLocal() 
        google() //***************1
        jcenter() //***************2
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }

    }

}

This solved my trouble