Java Question Compiling error with Simple Library Compiler

Johan Schoeman

Expert
Licensed User
Longtime User
I am using the latest version of SLC. Paths are set to
B4X:
C:\Program Files (x86)\Java\jdk1.8.0_66\bin\javac.exe

...and...
B4X:
C:\AndroidNew\platforms\android-28\android.jar

I am getting the following error when trying to compile the library:

B4X:
Starting step: Compiling Java code.
javac 1.8.0_66
C:\Users\----------2\Documents\Basic 4 Android\CameraNew\Camera-master\camera\src\top\defaults\camera\Camera2Photographer.java:234: error: method references are not supported in -source 1.7
        textureView.addCallback(this::startCaptureSession);
                                      ^
  (use -source 8 or higher to enable method references)
1 error


Error.

The error comes from this line in the java code:
B4X:
textureView.addCallback(this::startCaptureSession);

Am I doing something wrong here? Missing something?
 
Top