收到消息时,聊天应用程序崩溃,这与Firebase的实现有关吗?

时间:2019-04-29 01:11:50

标签: android firebase

我已经在我的CHating应用程序中实现了Firebase,推送通知有效,但是当用户在App中收到消息时,它立即关闭“崩溃”。

我试图将某些依赖版本更改为最新版本,但似乎没有做任何更改


`

 these are the basic lines of code, i tried to update them to the latest 
   version then i restored them as they were in the begning, i have been 
  loking f or over 20 hours on the internet for a solution, but nothing seems to be working..

每次我收到其他用户的消息时,应用程序都会继续崩溃。

apply plugin: 'com.android.application'


android {
 compileSdkVersion 28
 buildToolsVersion '28.0.3'

 defaultConfig {
     applicationId "com.chateet.chateet"
     minSdkVersion 17
     targetSdkVersion 28
     versionCode 57
     versionName '4.6'
     multiDexEnabled true

     .
     .
     .
dependencies {
 implementation fileTree(include: ['*.jar'], dir: 'libs')
 implementation 'com.mcxiaoke.volley:library:1.0.19'
 implementation 'com.github.chrisbanes.photoview:library:1.2.3'
 implementation 'com.facebook.android:facebook-android-sdk:4.35.0'
 implementation 'com.pkmmte.view:circularimageview:1.1'
 implementation 'com.mikhaellopez:circularimageview:3.2.0'
 implementation 'com.melnykov:floatingactionbutton:1.3.0'
 implementation 'com.squareup.okhttp:okhttp:2.5.0'
 implementation 'com.github.bumptech.glide:glide:3.7.0'
 implementation 'com.android.support:appcompat-v7:28.0.0'
 implementation 'com.android.support:animated-vector-drawable:28.0.0'
 implementation 'com.android.support:mediarouter-v7:28.0.0'
 implementation 'com.android.support:customtabs:28.0.0'
 implementation 'com.android.support:design:28.0.0'
 implementation 'com.android.support:recyclerview-v7:28.0.0'
 implementation 'com.android.support:cardview-v7:28.0.0'
 implementation 'com.balysv:material-ripple:1.0.2'
 implementation 'com.squareup.picasso:picasso:2.5.2'
 implementation 'com.google.firebase:firebase-core:16.0.7'
 implementation 'com.google.firebase:firebase-ads:17.1.3'
 implementation 'com.google.firebase:firebase-messaging:17.3.4'
 implementation 'com.google.firebase:firebase-analytics:16.3.0'
 implementation 'com.google.android.gms:play-services-gcm:16.0.0'
 implementation 'com.google.android.gms:play-services-ads:17.1.3'
 implementation 'com.google.android.gms:play-services-location:16.0.0'
}

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

~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~

for the rest, I added google-services.json to my App Directory.

In addition to these files, I did not change any other file.

How can I solve the problem described above?



EDIT: 
[My LOg cat when i recieve a message : ][1]


[1]: https://i.stack.imgur.com/OuDDx.png

what are the other files i should add so ican make it more clear please? this problem is really annoying me since two days

0 个答案:

没有答案
相关问题