Skip to content

Could not find method implementation() for arguments [com.github.kongqw:AndroidSerialPort:1.0.1]... #32

Description

@dexterque

报错信息

Build file 'D:\myapps\AndroidSerialPort\build.gradle' line: 25

A problem occurred evaluating root project 'AndroidSerialPort'.
> Could not find method implementation() for arguments [com.github.kongqw:AndroidSerialPort:1.0.1] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:+'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'https://jitpack.io' }
    }
}

dependencies {
    implementation 'com.github.kongqw:AndroidSerialPort:1.0.1'
}


task clean(type: Delete) {
    delete rootProject.buildDir
}

gradle-wrapper.properties

#Wed Dec 13 14:32:36 CST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions