• <small id='InJPS'></small><noframes id='InJPS'>

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

      1. <legend id='InJPS'><style id='InJPS'><dir id='InJPS'><q id='InJPS'></q></dir></style></legend>

        com.google.android.gms.common.internal.safe parcel.safe parc

        时间:2024-05-10
        <i id='U2ZNy'><tr id='U2ZNy'><dt id='U2ZNy'><q id='U2ZNy'><span id='U2ZNy'><b id='U2ZNy'><form id='U2ZNy'><ins id='U2ZNy'></ins><ul id='U2ZNy'></ul><sub id='U2ZNy'></sub></form><legend id='U2ZNy'></legend><bdo id='U2ZNy'><pre id='U2ZNy'><center id='U2ZNy'></center></pre></bdo></b><th id='U2ZNy'></th></span></q></dt></tr></i><div id='U2ZNy'><tfoot id='U2ZNy'></tfoot><dl id='U2ZNy'><fieldset id='U2ZNy'></fieldset></dl></div>

        <tfoot id='U2ZNy'></tfoot>

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

            • <bdo id='U2ZNy'></bdo><ul id='U2ZNy'></ul>
                <tbody id='U2ZNy'></tbody>

                  <legend id='U2ZNy'><style id='U2ZNy'><dir id='U2ZNy'><q id='U2ZNy'></q></dir></style></legend>
                  本文介绍了com.google.android.gms.common.internal.safe parcel.safe parcelable 未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试使用 FCM 和 https 上提供的教程向我的应用添加通知服务://www.simplifiedcoding.net/firebase-cloud-messaging-android/一切都已经完成并且像获取令牌等一样工作,但是现在在创建消息处理程序之后,我开始收到错误:

                  I am trying to add notification services to my app using FCM and tutorial given on https://www.simplifiedcoding.net/firebase-cloud-messaging-android/ Everything has done and working like getting token etc. but now after creating messaging handler, I started getting error:

                  Error:(22, 26) error: cannot access AbstractSafeParcelable
                  class file for com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable not found
                  

                  构建失败.请指导.gradle的代码是:

                  and build is failed. Pls guide. code for gradle is:

                  buildscript {
                      repositories {
                          maven { url 'https://maven.fabric.io/public' }
                  
                      }
                  
                      dependencies {
                          classpath 'io.fabric.tools:gradle:1.+'
                      }
                  }
                  apply plugin: 'com.android.application'
                  apply plugin: 'io.fabric'
                  
                  
                  repositories {
                      maven { url 'https://maven.fabric.io/public' }
                      maven {
                          url "https://s3-ap-southeast-1.amazonaws.com/godel-release/godel/"
                      }
                  }
                  
                  
                  android {
                      compileSdkVersion 25
                      buildToolsVersion "24.0.3"
                      useLibrary 'org.apache.http.legacy'
                      defaultConfig {
                          applicationId "jss.smartapp"
                          minSdkVersion 16
                          targetSdkVersion 25
                          versionCode 1
                          versionName "1.0"
                          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
                          multiDexEnabled true
                      }
                      buildTypes {
                          release {
                  
                              minifyEnabled true
                              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
                  
                          }
                      }
                  
                  
                      packagingOptions {
                          exclude 'META-INF/LICENSE'
                          exclude 'META-INF/LICENSE.txt'
                          exclude 'META-INF/NOTICE'
                          exclude 'META-INF/NOTICE.txt'
                      }
                  }
                  
                  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'
                      })
                      testCompile 'junit:junit:4.12'
                      compile files('libs/activation.jar')
                      compile files('libs/additionnal.jar')
                  //Apache IO
                      compile files('libs/commons-io-2.5.jar')
                      compile 'com.android.support:design:25.0.0'
                      compile 'com.android.support:appcompat-v7:25.0.0'
                  //Crashlytics
                      compile('com.crashlytics.sdk.android:crashlytics:2.6.5@aar') {
                          transitive = true;
                      }
                      //Dropbox
                      compile 'com.dropbox.core:dropbox-core-sdk:2.0.1'
                      compile 'com.squareup.picasso:picasso:2.5.2'
                      compile 'com.squareup.okhttp:okhttp:2.4.0'
                  //FTP
                      compile files('libs/ftp4j-1.7.2.jar')
                  //Http
                      compile 'com.squareup.okhttp3:okhttp:3.4.2'
                  //Instamojo
                      compile 'com.instamojo:android-sdk:+'
                  //Material Design Didalogs
                      compile 'com.afollestad.material-dialogs:commons:0.9.1.0'
                      compile 'org.apache.httpcomponents:httpclient-android:4.3.5.1'
                  //GSON
                      compile 'com.squareup.retrofit:retrofit:2.0.0-beta2'
                      compile 'com.squareup.retrofit:converter-gson:2.0.0-beta2'
                  //multidex dependency
                      compile 'com.android.support:multidex:1.0.1'
                      //box dependencies
                      compile 'com.box:box-java-sdk:2.1.1'
                      compile 'com.box:box-android-sdk:3.0.2'
                  //google drive dependency
                      compile 'com.google.android.gms:play-services-drive:10.0.1'
                      //one drive dependency
                      compile('com.onedrive.sdk:onedrive-sdk-android:1.2+') {
                          transitive = false
                      }
                      compile('com.microsoft.services.msa:msa-auth:0.8.+')
                      compile('com.microsoft.aad:adal:1.1.+')
                  
                      //justify test
                      compile 'com.github.bluejamesbond:textjustify-android:2.1.6'
                  
                      //image downnloader
                      /*compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'*/
                  //Glide Image downloading
                      compile 'com.github.bumptech.glide:glide:3.7.0'
                      compile 'com.android.support:support-v4:25.1.0'
                      compile 'com.google.firebase:firebase-messaging:9.2.1'
                  
                  }
                  apply plugin: 'com.google.gms.google-services'
                  

                  推荐答案

                  在你的 Gradle 文件中,所有版本的 google-play-service 和 firebase 都应该使用相同的版本.

                  In your Gradle file all the versions of google-play-service and firebase should use the same version.

                  如你所用:

                   compile 'com.google.android.gms:play-services-drive:10.0.1'
                  

                  你应该使用:

                  compile 'com.google.firebase:firebase-messaging:10.0.1'//而不是 9.2.1

                  compile 'com.google.firebase:firebase-messaging:10.0.1' // and not 9.2.1

                  这篇关于com.google.android.gms.common.internal.safe parcel.safe parcelable 未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何在 Android 中保存 FCM 令牌? 下一篇:无法解析符号 com.google.firebase.messaging.Message

                  相关文章

                  <tfoot id='sDRlA'></tfoot>

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

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

                    2. <legend id='sDRlA'><style id='sDRlA'><dir id='sDRlA'><q id='sDRlA'></q></dir></style></legend>