The error was because of the SHA1 fingerprint.Previously I took my SHA1 key from
window > preference > android > build
This SHA1 fingerprint will work only for the apk of bin folder.
I should have take the SHA1 fingerprint getting while exporting or by using the Keytool.