错误无法实例化服务com.google.firebase.iid.FirebaseInstanceIdService:java.lang.ClassNotFoundException-在Proguard Enabled版本中

时间:2019-02-14 07:16:52

标签: android firebase

我遇到以下提到的错误,

清理了项目,也使它无效并重新启动。但仍然是同样的问题。

启用了Proguard。-androidstudio:3.3.1

  

java.lang.RuntimeException:无法实例化服务com.google.firebase.iid.FirebaseInstanceIdService:java.lang.ClassNotFoundException:找不到类

     

原因:java.lang.ClassNotFoundException:在路径:DexPathList上找不到类“ com.google.firebase.iid.FirebaseInstanceIdService”

1 个答案:

答案 0 :(得分:1)

在ProGuard配置文件中简单添加-keep class com.google.firebase.iid.FirebaseInstanceIdService