tolu360 / react-native-google-places

iOS/Android Google Places Widgets (Autocomplete Modals) and API Services for React Native Apps
566 stars 289 forks source link

Could not find com.google.android.gms:play-services-clearcut:12.0.1. #249

Open ngohoang96 opened 5 years ago

ngohoang96 commented 5 years ago

Im get stuck with this issue for 4days ,hope to get helps . What i have missed ? Thanks for your help. -react-native version 0.57.8 -react-native google place 3.1.1

Could not find com.google.android.gms:play-services-clearcut:12.0.1. Searched in the following locations: file:/Users/ngohoang/Library/Android/sdk/extras/m2repository/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.pom file:/Users/ngohoang/Library/Android/sdk/extras/m2repository/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.aar file:/Users/ngohoang/Library/Android/sdk/extras/google/m2repository/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.pom file:/Users/ngohoang/Library/Android/sdk/extras/google/m2repository/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.aar file:/Users/ngohoang/Library/Android/sdk/extras/android/m2repository/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.pom file:/Users/ngohoang/Library/Android/sdk/extras/android/m2repository/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.aar https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.pom https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.aar https://jcenter.bintray.com/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.pom https://jcenter.bintray.com/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.aar file:/Users/ngohoang/.m2/repository/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.pom file:/Users/ngohoang/.m2/repository/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.aar https://repo.maven.apache.org/maven2/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.pom https://repo.maven.apache.org/maven2/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.aar https://jitpack.io/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.pom https://jitpack.io/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.aar file:/Users/ngohoang/Desktop/realcom-mobile/node_modules/react-native/android/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.pom file:/Users/ngohoang/Desktop/realcom-mobile/node_modules/react-native/android/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.aar https://maven.google.com/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.pom https://maven.google.com/com/google/android/gms/play-services-clearcut/12.0.1/play-services-clearcut-12.0.1.aar Required by: project :app > project :react-native-google-places > com.google.android.libraries.places:places:1.1.0

zhascka commented 5 years ago

have the same issue

zhascka commented 5 years ago

@ngohoang96 i found a solution check your build.gradle file and remove predefined 12.0.1 version for google services

zhascka commented 5 years ago

@ngohoang96 remove somethng like this

            if (!requested.name.startsWith("play-services-stats")) {
                details.useVersion '12.0.1'
            }
        } else if (requested.group == 'com.google.firebase') {
            details.useVersion '12.0.1'
        }

and use

 dependencies {
       ...
        classpath 'com.google.gms:google-services:4.2.0'
    }
shubhamneosoft commented 4 years ago

having same issue. Did anyone find its solution ?