0

将项目与 gradle 同步时收到错误消息。我的错误信息是:

Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: 
Could not find method implementation() for arguments 
[DefaultProjectDependency{dependencyProject='project ':mobilertc'', configuration='default'}] on 
object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

我的 build.gradle 文件

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
   compileSdkVersion 29
   buildToolsVersion "29.0.3"

defaultConfig {
    applicationId "com.CS.kba"
    minSdkVersion 16
    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 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.firebase:firebase-auth:19.3.1'
implementation 'com.google.firebase:firebase-analytics:17.4.0'
implementation 'androidx.navigation:navigation-fragment:2.2.2'
implementation 'androidx.navigation:navigation-ui:2.2.2'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.google.android.material:material:1.1.0'

}

我正在努力将缩放 API 应用到我的应用程序中。我只是按照文档说的做了。添加一些模块和库作为依赖项后出现的问题。

4

0 回答 0