Igot this error package com.google.firebase.messaging does not exist

apply plugin: 'com.android.application' apply plugin: 'com.neenbedankt.android-apt'

dependencies { compile 'com.google.firebase:firebase-ads:9.2.1'

} android { compileSdkVersion 24 buildToolsVersion "24.0.3" defaultConfig { applicationId "com.code.zero.drivermechanicsapp" minSdkVersion 15 targetSdkVersion 24 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(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support.constraint:constraint-layout:1.0.0-beta5'

    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:24.2.1'
    compile 'com.android.support:design:24.2.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.0-beta5'
    compile 'com.android.support:support-v4:25.2.0'
    compile 'com.android.support:recyclerview-v7:24.2.1'
    compile 'com.google.android.gms:play-services-maps:9.2.0'
    compile 'com.jakewharton:butterknife:8.1.0'
    compile 'com.google.firebase:firebase-database:9.2.0'
    compile 'com.github.Mariovc:ImagePicker:1.0.5'
    //compile 'com.google.firebase:firebase-storage:9.2.0'
    //compile 'com.google.firebase:firebase-auth:9.2.0'
    compile 'com.squareup.picasso:picasso:2.5.2'
    testCompile 'junit:junit:4.12'
    apt 'com.jakewharton:butterknife-compiler:8.1.0'
}

}

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


Have you included the correct dependencies in your build.gradle file? You can also use the Firebase Assistant.

Check out the Documentation page for the Gradle requirements if you are including it manually.

In other words, add the following to your dependencies:

implementation 'com.google.firebase:firebase-messaging:15.0.2'
链接地址: http://www.djcxy.com/p/85298.html

上一篇: 通知管理器在Kitkat中不起作用

下一篇: Igot这个错误包com.google.firebase.messaging不存在