gpt4 book ai didi

android - “com.google.firebase:firebase-auth:11.4.2”编译时发生Gradle错误

转载 作者:行者123 更新时间:2023-12-03 05:00:06 30 4
gpt4 key购买 nike

当我将“com.google.firebase:firebase-auth:11.4.2”添加到我的Gradle时,我收到错误消息“找不到Gradle DSL方法:compile()”

这是我的应用程序/毕业

    apply plugin: 'com.android.application'

android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
applicationId "com.watchmecoding.eazynote"
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
testCompile 'junit:junit:4.12'
compile 'com.google.code.gson:gson:2.8.2'
compile 'com.google.firebase:firebase-core:11.4.2'
compile 'com.google.firebase:firebase-database:11.4.2'
compile 'com.google.firebase:firebase-crash:11.4.2'
compile 'com.google.firebase:firebase-ads:11.4.2'
compile 'com.google.firebase:firebase-config:11.4.2'
compile 'com.google.firebase:firebase-storage:11.4.2'
compile 'com.google.firebase:firebase-analytics:11.4.2'
comlile 'com.google.firebase:firebase-auth:11.4.2'
}
apply plugin: 'com.google.gms.google-services'

这是我的项目/毕业
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.google.gms:google-services:3.1.1'


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

allprojects {
repositories {
maven {
url "https://maven.google.com"
}
jcenter()
}
}

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

我的存储库是更新的,我做了所有的工作,就像教程一样,但是仍然有这个问题,版本也都一样。
提前致谢。

enter image description here

最佳答案

更改您的源代码

comlile 'com.google.firebase:firebase-auth:11.4.2'


compile 'com.google.firebase:firebase-auth:11.4.2'

关于android - “com.google.firebase:firebase-auth:11.4.2”编译时发生Gradle错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46816003/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com