由于我更新了Android SDK Tools 25.1.6和Android Support Repository 32.0.0(今天上午),我得到了以下错误,我没有改变我的代码中的任何东西,它仍然在我的同事计算机上工作(Android SDK工具25.1.1 + Android支持库30.0.0)。 java.lang.IncompatibleClassChangeError: The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context)' was expected to be of type virtual but instead was found to be of type direct (declaration of 'java.lang.reflect.ArtMethod' appears in /system/framework/core-libart.jar) at com.google.android.gms.iid.zzd.zzeb(Unknown Source) at com.google.android.gms.iid.zzd.<init>(Unknown Source) at com.google.android.gms.iid.zzd.<init>(Unknown Source) at com.google.android.gms.iid.InstanceID.zza(Unknown Source) at com.google.android.gms.iid.InstanceID.getInstance(Unknown Source) at com.xxxxxxx.utils.RegistrationIntentService.onHandleIntent(RegistrationIntentService.java:55) at […]
Google昨天在Google I / O上发布了基于新Firebase的新通知系统。 我用Github上的例子尝试了这个新的FCM(Firebase Cloud Messaging)。 尽pipe我已经声明了特定的drawable,但通知的图标总是ic_launcher 为什么? 这里是处理消息的官方代码 public class AppFirebaseMessagingService extends FirebaseMessagingService { /** * Called when message is received. * * @param remoteMessage Object representing the message received from Firebase Cloud Messaging. */ // [START receive_message] @Override public void onMessageReceived(RemoteMessage remoteMessage) { // If the application is in the foreground handle […]