I am trying to generate qr code using Zxing library for qr code version 4 in android but i am unable to perform that .
Any kind of suggestion or link would be appreciated.
Version is chosen by the algorithm, you can't control it. The more data you have (and the more complex is the data, such as alphanumeric vs byte which is more complex) the higher version you will get.
Version 2 means there will be 17 + 2 x 4 modules (25). Version 4 will have 17 + 4 x 4 = 33 modules.
You can find some details on Denso Wave's website.