Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error react-native-facebook-login configuring #328

Open
longnk-1447 opened this issue Dec 11, 2018 · 8 comments
Open

Error react-native-facebook-login configuring #328

longnk-1447 opened this issue Dec 11, 2018 · 8 comments

Comments

@longnk-1447
Copy link

Help me!!! I'm used react-native-facebook-login, everything is working perfectly today. i run react-native run-android and this

Configure project :react-native-config WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

FAILURE: Build failed with an exception.

What went wrong: A problem occurred configuring project ':react-native-facebook-login'. Could not resolve all files for configuration ':react-native-facebook-login:classpath'. Could not find any matches for com.android.tools.build:gradle:1.2.+ as no versions of com.android.tools.build:gradle are available. Searched in the following locations: https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml https://jcenter.bintray.com/com/android/tools/build/gradle/ Required by: project :react-native-facebook-login

I don't know why, Please give me a solution to fix it

Thank you very much!

@msiripan
Copy link

@longnk-1447
Copy link
Author

#msiripan thank you very much!!

@gou3105
Copy link

gou3105 commented Dec 11, 2018

Same here!

@longnk-1447
Copy link
Author

longnk-1447 commented Dec 11, 2018

#gou3105

subprojects {
    if (project.name.contains('react-native-facebook-login')) {
        buildscript {
            repositories {
                jcenter()
                maven { url "https://dl.bintray.com/android/android-tools/"  }
            }
        }
    }

@gou3105
Copy link

gou3105 commented Dec 11, 2018

@longnk1301 Thank You! 👍

@vvusts
Copy link

vvusts commented Dec 11, 2018

In my case only this works:
In my project gradle:

subprojects {
    afterEvaluate {project ->
        
        if (project.name.contains('react-native-facebook-login') || 
            project.name.contains('react-native-vector-icons')) {
            buildscript {
                repositories {
                    jcenter()
                    maven { url "https://dl.bintray.com/android/android-tools/"  }
                }
            }
        }

In each of those libraries gradle:

dependencies {
    classpath 'com.android.tools.build:gradle:2.3.0'
  }

@longnk-1447
Copy link
Author

I need why??

@saadrehman013
Copy link

For anyone who stumble to this issue please go to this link: react-native-community/react-native-image-picker#1002 and https://stackoverflow.com/questions/53691457/react-native-android-could-not-find-com-android-toolscommon

Thanks... Appreciated! (Y)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants