zetbaitsu / Compressor

An android image compression library.
7.08k stars 963 forks source link

error: constructor Compressor in class Compressor cannot be applied to given types; #160

Open AkshayNar opened 4 years ago

AkshayNar commented 4 years ago

can anyone tell me what is the problem in code

Bitmap compressedImage = new Compressor(this) .setMaxWidth(320) .setMaxHeight(240) .setQuality(50) .compressToBitmap(actualImage); ByteArrayOutputStream baos = new ByteArrayOutputStream(); compressedImage.compress(Bitmap.CompressFormat.JPEG, 50, baos); byte[] imageUri = baos.toByteArray();

Error is showing red line under Compressor

valenitm commented 2 years ago

holaa le pudistes ayar el error tengo el mismo error y no puedo corregirlo

mohamedmohamedtaha commented 1 year ago

This problem appear when you update the version not updated make it implementation 'id.zelory:compressor:2.1.1' it will fix your problem for more info https://github.com/zetbaitsu/Compressor/blob/master/README_v2.md