I am developing an application in android in which i want to print the Image on reciept using thermal printer.
To achive this task i have added the escpos-coffee
package in my application.
To print image it is using
import java.imageio.BufferedImage
, to read image it is using ImageIO.read(file)
method both classes are located in rt.jar
library which i have externally added in the project.
But when i try to build it, it thorws error :
Error: MethodHandle.invoke and MethodHandle.invokeExact are only supported starting with Android O (--min-api 26)
Before that my sdk version versions were changed, then changed the min sdk to 5.1 and (target & compile skd version to 7.0) then it started throwing.
Any help in detail will be appreciated.
Thank you.