NullPointerExcepetion Facebook sdk v4.5.0 when enable Proguard (when try to login using Parse library)

China☆狼群 提交于 2019-12-01 15:23:45

I just added this line and it's working:

-keep class com.facebook.** { *; }

You have to add below lines into your file, That will resolve your problem.

Only need to add below lines.

-dontwarn com.facebook.**
-keep class com.facebook.** { *; }
-keepattributes Signature  
  1. ignore the warning, or don't warn for the package com.facebook
  2. keep the classes & inner classes as well inside that package.
  3. keep the signature of attribute.

try to add

-keep class com.facebook.* -keep class com.facebook.login.*

in your proguard file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!