sevketk
24th July 2020, 16:20
I already have android studio installed on my computer
13506
And its configure JDK , Android Sdk
13507
so far so good. if I set same variable to QT creator
13508
13509
when i run my project, there is no problem. so far so good
but whenever I add a lambda expression to my java file, I get an error.
13510
> Task :compileDebugJavaWithJavac FAILED
E:\kutuphane\belgelerim\QT Projects\JniTest2\android-build\src\org\qtproject\example\JniTest2\TerminalF ragment.java:336: error: method references are not supported in -source 1.7
rtsBtn.setOnClickListener(this::toggle);
^
(use -source 8 or higher to enable method references)
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
however, the project with the same lambda works in android studio. qt and A.studio have same jdk . and insist that the qt jdk version is less than 8 ???
how can this be. where am i making a mistake.
>
>
>
13506
And its configure JDK , Android Sdk
13507
so far so good. if I set same variable to QT creator
13508
13509
when i run my project, there is no problem. so far so good
but whenever I add a lambda expression to my java file, I get an error.
13510
> Task :compileDebugJavaWithJavac FAILED
E:\kutuphane\belgelerim\QT Projects\JniTest2\android-build\src\org\qtproject\example\JniTest2\TerminalF ragment.java:336: error: method references are not supported in -source 1.7
rtsBtn.setOnClickListener(this::toggle);
^
(use -source 8 or higher to enable method references)
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
however, the project with the same lambda works in android studio. qt and A.studio have same jdk . and insist that the qt jdk version is less than 8 ???
how can this be. where am i making a mistake.
>
>
>