Installed app using apk crashes when I update my facebook sdk to 4.28.0 and up

When I update my facebook sdk to 4.28.0 and up then build an apk and install it in my device. The app crashes when I open it but when I run it directly using the android studio it runs fine.

E/AndroidRuntime: FATAL EXCEPTION: Thread-683
                                                 Process: PID: 9443
                                                 java.lang.NoSuchMethodError: org.apache.http.message.HeaderGroup.a
                                                     at org.apache.http.message.a.a(Unknown Source)
                                                     at com.android.volley.a.g.a(Unknown Source)
                                                     at com.android.volley.a.a.a(Unknown Source)
                                                     at com.android.volley.f.run(Unknown Source)