android - 无法解析 Android 应用程序模块的 Gradle 配置。解决 gradle 构建问题和/或重新同步。?

标签 android firebase

我尝试了所有方法但无法解决问题.. 最初更新无法通过 android studio 进行,所以我卸载了以前的版本并下载并安装了最新版本 3.1

下面是我构建gradle的代码

dependencies {

    implementation fileTree(include: ['*.jar'], dir: 'libs')

    androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {

        exclude group: 'com.android.support', module: 'support-annotations'
    })

    //implementation 'de.hdodenhof:circleimageview:2.1.0'      // use this or use the latest compile version. In case u get bug.
    implementation files('libs/picasso-2.5.2.jar')
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support:design:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation 'com.android.support:cardview-v7:26.1.0'
    implementation 'com.github.PhilJay:MPAndroidChart:v3.0.2'

    implementation 'com.google.firebase:firebase-core:12.0.1'
    implementation 'com.google.firebase:firebase-auth:12.0.1'
    implementation 'com.google.firebase:firebase-messaging:12.0.1'
    implementation 'com.android.support:support-v4:26.1.0'

    implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
    implementation 'com.google.android.gms:play-services-auth:12.0.1'
    implementation 'pub.devrel:easypermissions:0.3.0'
    implementation 'com.google.android.gms:play-services-drive:12.0.1'
    implementation 'com.google.api-client:google-api-client:1.23.0'
    implementation 'com.github.bumptech.glide:glide:3.7.0'

    implementation('com.google.api-client:google-api-client-android:1.23.0') {

        exclude group: 'org.apache.httpcomponents'

    }
    implementation('com.google.apis:google-api-services-drive:v3-rev87-1.23.0') {

        exclude group: 'org.apache.httpcomponents'

    }

    implementation 'com.synnapps:carouselview:0.1.4'
    implementation 'com.prof.rssparser:rssparser:1.3.1'

    implementation 'com.jakewharton.timber:timber:4.6.0'
    testImplementation 'junit:junit:4.12'

    implementation('com.crashlytics.sdk.android:crashlytics:2.9.0@aar') {

        transitive = true

    }

    debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
    releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'

    implementation 'com.andrognito.patternlockview:patternlockview:1.0.0'
    // Optional, for RxJava2 adapter
    //compile 'com.andrognito.patternlockview:patternlockview-reactive:1.0.0'

}

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

最佳答案

我最近遇到了同样的问题。它似乎是检查与 firebase 服务本身的连接的按钮中的 IDE 错误。我不得不通过 firebase console 手动设置一个新项目.

关于android - 无法解析 Android 应用程序模块的 Gradle 配置。解决 gradle 构建问题和/或重新同步。?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49731251/

相关文章:

android - ADB Wireless + Windows + 非 root 设备 + 挂起问题

android - 多次包含时在布局内设置Android RemoteViews的文本

android - 是否可以将多个 BT 耳机与 Android 设备配对并向它们传输声音?

android - 如何使用 HTML/CSS 将宽度设置为移动屏幕大小

node.js - GitHub Action 构建 firebase 应用程序失败 w9jds/firebase-action

Android Studio "Bottom Navigation Activity"模板在顶部留下空白区域

带有 Firebase 通知的 iOS,都不起作用

firebase - 如何在Flutter Firestore中编辑用户

java - 无法从 firebase 数据库中检索值

firebase - 使用 "EACCES: permission denied"时为 "firebase serve"