我在gradle中有错误,我该怎么办?

时间:2020-03-08 08:32:32

标签: java android gradle

我想将cardview放在我的项目中,并且它需要实现依赖项(基于我的观察结果)

我在搜索并同步的build.gradle中输入了依赖项...

但是gradle项目无法同步,这是错误:

build.gradle:29: Gradle DSL method not found: 'imeplementation()'
Possible causes:
The project 'Notifier' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
<a href="fixGradleElements">Upgrade plugin to version 3.5.0 and sync project</a>

The project 'Notifier' may be using a version of Gradle that does not contain the method.
<a href="open.wrapper.file">Open Gradle wrapper file</a>

The build file may be missing a Gradle plugin.
<a href="apply.gradle.plugin">Apply Gradle plugin</a>

这是应用程序中的build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.3"
    defaultConfig {
        applicationId "com.example.notifier"
        minSdkVersion 15
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.2.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    imeplementation 'androidx.cardview:cardview:1.0.0'
}

1 个答案:

答案 0 :(得分:3)

您只是输错了字词,df1 = df1.resample('15Min').mean() 而不是implementation