Hi I use this Library in my app for take picture Camera2 I set the camera in my app but I have a problem with this part of code
captureBitmap(bitmap -> {
new Handler().post(() -> {
String imagePath = getImageFilePath();
saveAsPngImage(bitmap, imagePath);
exportPngToGallery(getApplicationContext(), imagePath);
});
});`
When I paste it on my code it says me this
Lambda expressions are not supported at language level '1.7
So I change my java Language for 1.8 but after I did this my build failed with this error
Process 'command 'C:\Program Files\Android\Android Studio\jre\bin\java.exe'' finished with non-zero exit value 1
And now I'm stuck with this . So if anyone know who can I use the captureimage void without uptade my Language it would be great thanks