我有一个Android Studio项目,我使用GCM来获取通知,所以我有Play服务和所有GCM的东西。我面临的问题是,即使我的项目中没有配置firebase或添加到gradle中的文件,我也会在收到消息时收到Firebase日志。
GCM工作正常,这里的问题是奇怪的firebase日志。
我的Gradle:
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'com.jakewharton.hugo'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.example.appname"
minSdkVersion 16
targetSdkVersion 23
versionCode 39
versionName "1.1"
renderscriptTargetApi 20
renderscriptSupportModeEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:gridlayout-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:cardview-v7:23.4.0'
compile 'com.google.code.gson:gson:2.3'
compile 'com.squareup.retrofit:retrofit:2.0.0-beta2'
compile 'com.squareup.retrofit:converter-gson:2.0.0-beta2'
compile 'com.squareup.okhttp:logging-interceptor:2.6.0'
// IMAGE LOADER
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.1'
// GOOGLE PLAY SERVICES
compile 'com.google.android.gms:play-services-auth:9.0.0'
compile 'com.google.android.gms:play-services-gcm:9.0.0'
}
这是我每次都得到的:
08-22 12:18:39.981 26138-26138/com.example.appname E/FirebaseInstanceId: Failed to resolve target intent service, skipping classname enforcement
08-22 12:18:39.985 2767-4133/? W/ActivityManager: Unable to start service Intent { act=com.google.firebase.MESSAGING_EVENT pkg=com.example.appname (has extras) } U=0: not found
08-22 12:18:39.986 26138-26138/com.example.appname E/FirebaseInstanceId: Error while delivering the message: ServiceIntent not found.