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

后端 未结 3 614
感动是毒
感动是毒 2021-01-17 15:12

I\'m trying to login with Facebook using ParseFacebookUtils library and it\'s working good but when i enabled the Proguard file i have this exception on Facebook login activ

3条回答
  •  执念已碎
    2021-01-17 16:08

    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.

提交回复
热议问题