• <i id='J4IiE'><tr id='J4IiE'><dt id='J4IiE'><q id='J4IiE'><span id='J4IiE'><b id='J4IiE'><form id='J4IiE'><ins id='J4IiE'></ins><ul id='J4IiE'></ul><sub id='J4IiE'></sub></form><legend id='J4IiE'></legend><bdo id='J4IiE'><pre id='J4IiE'><center id='J4IiE'></center></pre></bdo></b><th id='J4IiE'></th></span></q></dt></tr></i><div id='J4IiE'><tfoot id='J4IiE'></tfoot><dl id='J4IiE'><fieldset id='J4IiE'></fieldset></dl></div>

        <legend id='J4IiE'><style id='J4IiE'><dir id='J4IiE'><q id='J4IiE'></q></dir></style></legend>
          <bdo id='J4IiE'></bdo><ul id='J4IiE'></ul>
      1. <tfoot id='J4IiE'></tfoot>

      2. <small id='J4IiE'></small><noframes id='J4IiE'>

      3. 无法访问 zzbfm 类文件 zzbfm not found, firebase, android?

        Cannot access zzbfm class file zzbfm not found, firebase, android?(无法访问 zzbfm 类文件 zzbfm not found, firebase, android?)
      4. <tfoot id='cPL4U'></tfoot>

      5. <i id='cPL4U'><tr id='cPL4U'><dt id='cPL4U'><q id='cPL4U'><span id='cPL4U'><b id='cPL4U'><form id='cPL4U'><ins id='cPL4U'></ins><ul id='cPL4U'></ul><sub id='cPL4U'></sub></form><legend id='cPL4U'></legend><bdo id='cPL4U'><pre id='cPL4U'><center id='cPL4U'></center></pre></bdo></b><th id='cPL4U'></th></span></q></dt></tr></i><div id='cPL4U'><tfoot id='cPL4U'></tfoot><dl id='cPL4U'><fieldset id='cPL4U'></fieldset></dl></div>
          <tbody id='cPL4U'></tbody>

          • <bdo id='cPL4U'></bdo><ul id='cPL4U'></ul>
          • <legend id='cPL4U'><style id='cPL4U'><dir id='cPL4U'><q id='cPL4U'></q></dir></style></legend>

                <small id='cPL4U'></small><noframes id='cPL4U'>

                  本文介绍了无法访问 zzbfm 类文件 zzbfm not found, firebase, android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在我的应用中集成了播放服务和 firebase.当我运行应用程序时出现此错误

                  I have integrated play services and firebase in my app. When I run the application I get this error

                  cannot access zzbfm
                  class file for com.google.android.gms.internal.zzbfm not found
                  

                  这是我的顶级毕业生

                  buildscript {
                  
                  repositories {
                      google()
                      jcenter()
                  }
                  dependencies {
                      classpath 'com.android.tools.build:gradle:3.1.2'
                  
                  
                      // NOTE: Do not place your application dependencies here; they belong
                      // in the individual module build.gradle files
                      classpath 'com.google.gms:google-services:4.0.1'
                  }
                  }
                  
                  allprojects {
                  repositories {
                      google()
                      jcenter()
                  }
                  tasks.withType(JavaCompile) { options.deprecation = true }
                  }
                  
                  task clean(type: Delete) {
                  delete rootProject.buildDir
                  }
                  

                  这是我的应用级 gradle

                  This is my app level gradle

                  apply plugin: 'com.android.application'
                  android {
                  compileSdkVersion 27
                  defaultConfig {
                      applicationId "ima.rvtech"
                      minSdkVersion 23
                      targetSdkVersion 27
                      versionCode 1
                      versionName "1.0"
                      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
                  }
                  buildTypes {
                      release {
                          minifyEnabled false
                          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
                      }
                  }
                  }
                  
                  dependencies {
                  implementation fileTree(dir: 'libs', include: ['*.jar'])
                  implementation 'com.android.support:appcompat-v7:27.0.2'
                  implementation 'com.android.support:design:27.0.2'
                  implementation 'com.android.support.constraint:constraint-layout:1.1.0'
                  implementation 'com.android.support:support-v4:27.0.2'
                  implementation 'com.google.android.gms:play-services-location:15.0.1'
                  implementation 'com.google.firebase:firebase-core:16.0.0'
                  implementation 'com.google.firebase:firebase-auth:11.6.2'
                  implementation 'com.google.firebase:firebase-messaging:11.8.0'
                  testImplementation 'junit:junit:4.12'
                  androidTestImplementation 'com.android.support.test:runner:1.0.2'
                  androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
                  implementation 'com.google.dagger:dagger:2.16'
                  annotationProcessor 'com.google.dagger:dagger-compiler:2.16'
                  implementation 'com.jakewharton:butterknife:8.8.1'
                  annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
                  implementation 'com.github.bumptech.glide:glide:4.6.1'
                  annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
                  implementation 'io.reactivex.rxjava2:rxjava:2.1.13'
                  implementation 'com.squareup.retrofit2:retrofit:2.3.0'
                  implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
                  implementation 'com.balsikandar.android:crashreporter:1.0.9'
                  implementation "android.arch.persistence.room:runtime:1.0.0"
                  annotationProcessor "android.arch.persistence.room:compiler:1.0.0"
                  }
                  
                  apply plugin: 'com.google.gms.google-services'
                  

                  当我尝试获取远程消息内容时,我的 MessageService 类指向错误

                  I am getting the error pointed in my MessageService class pointing when I am trying to get remotemessage conntent

                  public class FCMMessageService extends FirebaseMessagingService {
                  
                  @Override
                  public void onMessageReceived(RemoteMessage message) {
                      sendMyNotification(message.getNotification().getBody());
                  }
                  
                  
                  private void sendMyNotification(String message) {
                  
                      //On click of notification it redirect to this Activity
                      Intent intent = new Intent(this, ActivityHome.class);
                      intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
                      PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_ONE_SHOT);
                  
                      Uri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
                      NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this,"x")
                              .setSmallIcon(R.mipmap.ic_launcher)
                              .setContentTitle("My Firebase Push notification")
                              .setContentText(message)
                              .setAutoCancel(true)
                              .setSound(soundUri)
                              .setContentIntent(pendingIntent);
                  
                      NotificationManager notificationManager =
                              (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
                  
                      notificationManager.notify(0, notificationBuilder.build());
                  }
                  }
                  

                  已经检查过其他问题中提到的解决方案,但这些答案都不起作用.

                  Have already checked solutions mentioned on other questions, but none of those answers worked.

                  有什么办法吗?

                  推荐答案

                  您不能混合使用版本 <= 12 和版本 >= 15 的 Firebase 库.

                  You can't mix versions <= 12 and versions >= 15 of Firebase libraries.

                  implementation 'com.google.firebase:firebase-core:16.0.0'
                  implementation 'com.google.firebase:firebase-auth:11.6.2'
                  implementation 'com.google.firebase:firebase-messaging:11.8.0'
                  

                  最简单的解决方法是将所有这些升级到版本 16 或更高版本:

                  The easiest fix is to upgrade all of these to version 16 or later:

                  implementation 'com.google.firebase:firebase-core:16.0.0'
                  implementation 'com.google.firebase:firebase-auth:16.0.1'
                  implementation 'com.google.firebase:firebase-messaging:17.0.0'
                  

                  所有这些版本均来自为 Android 设置 Firebase 文档,因此请务必请务必在那里查看最新更新.

                  All of these versions are from the setting up Firebase for Android documentation, so be sure to check there for the latest updates.

                  背景:在版本 12 及更低版本中,项目中所有 Firebase(和 Play 服务)库的版本必须完全相同.在 15 之后的版本中,您可以混合版本.但是没有办法在一个项目中混合 <= 12 和 >= 15 个库.

                  这篇关于无法访问 zzbfm 类文件 zzbfm not found, firebase, android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How can I use CClistview in COCOS2d Android?(如何在 COCOS2d Android 中使用 CClistview?)
                  cocos2d-android: how to display score(cocos2d-android:如何显示分数)
                  Sqlite database not copied from asset folder Android(Sqlite 数据库未从资产文件夹 Android 复制)
                  SQLite Database Copy Appears Corrupted When Generated by Device and not Emulator(SQLite 数据库副本在由设备而不是模拟器生成时出现损坏)
                  Android file copy(安卓文件拷贝)
                  Android how to detect Copy event of Edittext in android(Android如何在android中检测Edittext的Copy事件)
                    <tbody id='qvM5l'></tbody>

                1. <legend id='qvM5l'><style id='qvM5l'><dir id='qvM5l'><q id='qvM5l'></q></dir></style></legend>
                    <bdo id='qvM5l'></bdo><ul id='qvM5l'></ul>

                        <tfoot id='qvM5l'></tfoot>

                        <small id='qvM5l'></small><noframes id='qvM5l'>

                            <i id='qvM5l'><tr id='qvM5l'><dt id='qvM5l'><q id='qvM5l'><span id='qvM5l'><b id='qvM5l'><form id='qvM5l'><ins id='qvM5l'></ins><ul id='qvM5l'></ul><sub id='qvM5l'></sub></form><legend id='qvM5l'></legend><bdo id='qvM5l'><pre id='qvM5l'><center id='qvM5l'></center></pre></bdo></b><th id='qvM5l'></th></span></q></dt></tr></i><div id='qvM5l'><tfoot id='qvM5l'></tfoot><dl id='qvM5l'><fieldset id='qvM5l'></fieldset></dl></div>