【问题标题】:showing dependency error using firebase使用firebase显示依赖错误
【发布时间】:2017-01-08 09:22:56
【问题描述】:

我正在尝试将 firebase 用于实时数据库。项目前段时间运行成功,但现在显示此错误...

错误:失败:构建失败并出现异常。

我的构建等级:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 24
    buildToolsVersion "24.0.3"
    defaultConfig {
        applicationId "com.example.ashik.project"
        minSdkVersion 17
        targetSdkVersion 24
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }


    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }

    }

    packagingOptions {
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE-FIREBASE.txt'
        exclude 'META-INF/NOTICE'
    }
}
dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:multidex:1.0.1'
    compile "com.squareup.picasso:picasso:2.4.0"

    compile 'com.google.firebase:firebase-core:9.0.2'
    compile 'com.google.firebase:firebase-database:9.0.2'
    compile 'com.android.support:appcompat-v7:24.0.0'
    compile 'com.android.support:support-v4:24.0.0'
    compile 'com.android.support:design:24.0.0'
    compile 'com.firebase:firebase-client-android:2.5.2+'
    compile 'com.firebaseui:firebase-ui:0.3.1'
    compile 'com.github.dakatso:livebutton:1.0.0'
    compile 'com.jakewharton:butterknife:7.0.1'
    compile 'com.squareup.picasso:picasso:2.4.0'
    compile 'de.hdodenhof:circleimageview:2.1.0'
    compile 'com.balysv:material-ripple:1.0.2'
    compile 'com.github.dmytrodanylyk.circular-progress-button:library:1.1.3'
    compile 'com.android.support:multidex:1.0.1'
    compile 'com.google.android.gms:play-services:9.0.2'
    compile 'com.google.android.gms:play-services-ads:9.0.2'
    compile 'com.google.android.gms:play-services-auth:9.0.2'
    compile 'com.google.android.gms:play-services-gcm:9.0.2'
    compile 'org.jsoup:jsoup:1.10.1'
    compile 'com.facebook.stetho:stetho-okhttp:1.4.1'
    androidTestCompile 'org.hamcrest:hamcrest-library:1.3'
}
apply plugin: 'com.google.gms.google-services'

【问题讨论】:

    标签: android


    【解决方案1】:

    在为 Firebase 提供的文档中,https://firebase.google.com/docs/android/setup

    开发人员提到了您面临的相同问题。

    "编译'com.google.firebase:firebase-core:10.0.1'

    // 收到“找不到”错误?确保你有 // Android SDK 管理器中最新的 Google Repository"

    所以请尝试更新您的 SDK 工具,这应该可以解决。

    【讨论】:

    • 尝试更新一次你的 SDK 并告诉我
    猜你喜欢
    • 2017-05-13
    • 1970-01-01
    • 1970-01-01
    • 2022-01-15
    • 2018-05-12
    • 2018-06-16
    • 1970-01-01
    • 2019-05-18
    • 2013-02-19
    相关资源
    最近更新 更多