I want to build my android project, but it failed, the error output is below:
-compile:
[javac] Compiling 9 source files to /Users/att/Work/Temp/candyhero/android/bin/classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] /Users/att/Work/Temp/candyhero/android/src/org/libsdl/app/SDLActivity.java:137: error: lambda expressions are not supported in -source 1.5
[javac] File[] files = new File(libraryPath).listFiles((dir, filename) -> {
[javac] ^
[javac] (use -source 8 or higher to enable lambda expressions)
[javac] /Users/att/Work/Temp/candyhero/android/src/org/libsdl/app/SDLActivity.java:146: error: diamond operator is not supported in -source 1.5
[javac] ArrayList libraryNames = new ArrayList<>(files.length);
[javac] ^
[javac] (use -source 7 or higher to enable diamond operator)
[javac] 2 errors
[javac] 3 warnings