kongqw / AndroidSerialPort

Android串口通信示例
718 stars 214 forks source link

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

Open dexterque opened 3 years ago

dexterque commented 3 years ago

报错信息

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
dexterque commented 3 years ago

@kongqw 还能给看看吗🤣