Gradle build failure when trying to use Facebook SDK

前端 未结 3 1253
误落风尘
误落风尘 2020-12-11 18:26

I am trying to use the Facebook SDK in a project in Android Studio. I am following step 3 of this tutorial. When I try to Run the app, I get a \"Gradle: Execution failed for

3条回答
  •  囚心锁ツ
    2020-12-11 18:55

    I had a similiar issue and it was just plain oversight on my part. I had conflicting versions of com.android.tools.build:gradle:1.1.2 and 1.1.1 inside two different gradle.build files.

    app/gradle.build

    dependencies {
        ...
        compile 'com.android.tools.build:gradle:1.1.2'
        ...
    }
    

    top-level gradle.build

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

    I commented out the line in my project's gradle.build file, ran gradlew clean from the command line, restarted Android Studio and then order was restored in the universe.

提交回复
热议问题