Igot这个错误包com.google.firebase.messaging不存在
apply plugin:'com.android.application'apply plugin:'com.neenbedankt.android-apt'
依赖项{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'
}
}
应用插件:“com.google.gms.google-services”
你有没有在你的build.gradle
文件中包含正确的依赖关系? 您也可以使用Firebase助手。
如果您手动包含它,请查看Gradle要求的文档页面。
换句话说,将以下内容添加到您的依赖关系中:
implementation 'com.google.firebase:firebase-messaging:15.0.2'
链接地址: http://www.djcxy.com/p/85297.html
上一篇: Igot this error package com.google.firebase.messaging does not exist