question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not find method implementation() for arguments [com.android.support.constraint:constraint-layout:1.1.0-beta1] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

See original GitHub issue

Hello I’m New to OSS

I’m using android studio 2.3.3 and getting error while I build Plaid

Error:(72, 0) Could not find method implementation() for arguments [com.android.support.constraint:constraint-layout:1.1.0-beta1] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

here are app level gradle

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

// query git for the SHA, Tag and commit count. Use these to automate versioning.
def gitSha = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()
def gitTag = 'git describe --tags'.execute([], project.rootDir).text.trim()
def gitCommitCount = 100 +
        Integer.parseInt('git rev-list --count HEAD'.execute([], project.rootDir).text.trim())

android {
    compileSdkVersion versions.compileSdk
    buildToolsVersion versions.buildTools

    defaultConfig {
        applicationId "io.plaidapp"
        minSdkVersion 21
        targetSdkVersion versions.targetSdk
        versionCode gitCommitCount
        versionName gitTag
        archivesBaseName = "plaid"
        resConfig "en"
        buildConfigField "String", "GIT_SHA", "\"${gitSha}\""
        buildConfigField "String", "DRIBBBLE_CLIENT_ID", "\"${dribbble_client_id}\""
        buildConfigField "String", "DRIBBBLE_CLIENT_SECRET", "\"${dribbble_client_secret}\""
        buildConfigField "String",
                "DRIBBBLE_CLIENT_ACCESS_TOKEN", "\"${dribbble_client_access_token}\""
        buildConfigField "String", "DESIGNER_NEWS_CLIENT_ID", "\"${designer_news_client_id}\""
        buildConfigField "String",
                "DESIGNER_NEWS_CLIENT_SECRET", "\"${designer_news_client_secret}\""
        buildConfigField "String",
                "PROCUCT_HUNT_DEVELOPER_TOKEN", "\"${product_hunt_developer_token}\""
        def filesAuthorityValue = applicationId + ".shareprovider"
        buildConfigField "String", "FILES_AUTHORITY", "\"${filesAuthorityValue}\""
        manifestPlaceholders = [filesAuthority: filesAuthorityValue]
    }
    buildTypes {
        release {
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }
}

repositories {
    jcenter()
    google()
}

dependencies {
    implementation 'com.android.support.constraint:constraint-layout:1.1.0-beta1'
    implementation "com.android.support:customtabs:${versions.supportLibrary}"
    implementation "com.android.support:design:${versions.supportLibrary}"
    implementation "com.android.support:palette-v7:${versions.supportLibrary}"
    implementation "com.android.support:recyclerview-v7:${versions.supportLibrary}"
    implementation "com.android.support:support-dynamic-animation:${versions.supportLibrary}"
    implementation 'com.github.bumptech.glide:glide:3.8.0'
    implementation 'com.github.bumptech.glide:okhttp3-integration:1.5.0@aar'
    implementation 'com.google.code.gson:gson:2.8.1'
    implementation "com.jakewharton:butterknife:${versions.butterknife}"
    annotationProcessor "com.jakewharton:butterknife-compiler:${versions.butterknife}"
    implementation "com.squareup.retrofit2:retrofit:${versions.retrofit}"
    implementation "com.squareup.retrofit2:converter-gson:${versions.retrofit}"
    implementation 'com.squareup.okhttp3:okhttp:3.8.1'
    implementation 'org.jsoup:jsoup:1.10.3'
    implementation project(':bypass')
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:${versions.kotlin_version}"
}

here are project level gradle

buildscript {

    ext.versions = [
            'compileSdk'    : 26,
            'targetSdk'     : 26,
            'buildTools'    : '26.0.1',
            'supportLibrary': '26.0.1',
            'retrofit'      : '2.3.0',
            'butterknife'   : '8.8.1',
            'kotlin_version': '1.1.3-2'
    ]

    repositories {
        jcenter()
        google()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin_version}"
    }

}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
nickbutchercommented, Aug 29, 2017

Sorry but you’ll have to update to Android Studio 3 betas and Gradle 4.1 to build Plaid.

4reactions
jarvanhcommented, Aug 29, 2017

I use “compile” instead of “implementation”.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gradle - Error Could not find method implementation() for ...
0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. My Code in build.gradle Which can help to ...
Read more >
Fix "Error Could not find method implementation() for ...
Implementation dependencies are declared in this configuration which is internal and not meant for consumer exposure. The main reason for “Could ...
Read more >
How to solve Android error: Could not find method ...
How to solve Android error: Could not find method implementation() for arguments on object of type org.gradle.api.internal.artifacts.dsl.
Read more >
core'] on object of type org.gradle.api.internal.artifacts.dsl ...
Could not find method implementation() for arguments [project ':core'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.
Read more >
Could not find method implementation() for arguments [project ...
Could not find method implementation() for arguments [project ':react-native-maps' ... on object of type org.gradle.api.internal.artifacts.dsl.dependencies.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found