编译com.google.firebase:firebase-messaging:12.0.1'已设置
使用compile' com.google.firebase:firebase-messaging:10.2.1' - 一切都很好
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
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:26.+'
compile 'com.android.support:design:26.+'
compile 'com.android.support:cardview-v7:26.0.0-alpha1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:recyclerview-v7:26.0.0-alpha1'
compile 'com.vk:androidsdk:+'
compile 'com.google.firebase:firebase-core:10.2.1'
compile 'com.google.firebase:firebase-messaging:10.2.1'
compile 'com.google.firebase:firebase-database:10.2.1'
compile 'com.journeyapps:zxing-android-embedded:3.5.0'
compile 'com.google.zxing:core:3.2.0'
compile 'com.google.firebase:firebase-storage:10.2.1'
compile 'com.google.firebase:firebase-auth:10.2.1'
compile 'com.google.firebase:firebase-crash:10.2.1'
compile 'com.github.techery:properratingbar:+'
compile 'com.github.zagum:Android-SwitchIcon:1.3.5'
compile 'com.heinrichreimersoftware:material-intro:1.6.2'
compile 'com.android.support:support-v4:26.+'
compile 'com.github.amlcurran.showcaseview:library:5.4.3'
compile 'com.facebook.android:facebook-login:[4,5)'
compile 'com.google.android.gms:play-services-auth:10.2.1'
testCompile 'junit:junit:4.12'
}
答案 0 :(得分:0)
确保您还将依赖项放在项目gradle中
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0-rc1'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
并在app build gradle文件中放入这两个依赖
应用程序/的build.gradle
dependencies {
compile 'com.google.firebase:firebase-messaging:9.6.0' //new version 12.0.1
}
apply plugin: 'com.google.gms.google-services'
然后和Gson文件重建你的项目
答案 1 :(得分:0)
我发现了问题。 我的服务存在
>> s = "who is the\u00a0winners\u00a0where\u00a0season result\u00a0is 7th"
>> print(s)
who is the winners where season result is 7th
在12版本中,此方法标记为final。我删除了 handleIntent ,一切都很好。但为什么它告诉我服务不可见?..