Error when using QRGen library to generate QR code
问题 I am using the QRGen library to generate a ByteArrayOutputStream for a QR code and the generate a Bitmap image for it. I have imported the 3 following jars into my project: qrgen-1.0.jar zxing-core-1.7.jar zxing-j2se-1.7.jar This is the method generating the QR code ByteArray: public Bitmap qrBitmapFromString(String qrText){ ByteArrayOutputStream out = QRCode.from(qrText).to(ImageType.PNG).withSize(300, 300).stream(); byte[] data = out.toByteArray(); Bitmap bmp = BitmapFactory.decodeByteArray