Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/203.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Firebase Android SDK导致加载片段出现问题_Android_Android Studio_Android Fragments_Firebase_Push Notification - Fatal编程技术网

Firebase Android SDK导致加载片段出现问题

Firebase Android SDK导致加载片段出现问题,android,android-studio,android-fragments,firebase,push-notification,Android,Android Studio,Android Fragments,Firebase,Push Notification,我用Android Studio导入了一个旧的Eclipse项目。我使用GCM进行推送通知。我正在尝试使用Firebase更新此项目。只需将Firebase依赖项添加到gradle中,我就遇到了一些片段的问题。应用程序不显示,甚至加载此片段 dependencies { compile fileTree(include: '*.jar', dir: 'libs') compile project(':wheel') compile files('libs/zxing-2.1.jar') comp

我用Android Studio导入了一个旧的Eclipse项目。我使用GCM进行推送通知。我正在尝试使用Firebase更新此项目。只需将Firebase依赖项添加到gradle中,我就遇到了一些片段的问题。应用程序不显示,甚至加载此片段

dependencies {
compile fileTree(include: '*.jar', dir: 'libs')
compile project(':wheel')
compile files('libs/zxing-2.1.jar')
compile files('libs/itextpdf-5.5.8.jar')
compile 'com.android.support:support-v4:21.0.3'
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.google.firebase:firebase-messaging:9.6.0' }


android {
compileSdkVersion 21
buildToolsVersion "21.0.2"
defaultConfig {
    minSdkVersion 10
    targetSdkVersion 15

}

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

有什么想法吗?

试着使用compile'com.google.firebase:firebase消息:9.2.1'有时,这个最新的库会出错。

试着使用compile'com.google.firebase:firebase消息:9.2.1'有时,这个最新的库会出错。谢谢它的工作;)好的,我会的