> Task :react-native-picker_picker:compileDebugJavaWithJavac FAILED
D:SIPFUNDSipFundnode_modules@react-native-pickerpickerandroidsrcmainjavacomreactnativecommunitypickerReactPicker.java:144: error: lambda expressions are not supported in -source 7
private final Runnable measureAndLayout = () -> {
^
(use -source 8 or higher to enable lambda expressions)
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-picker_picker: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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 36s
591 actionable tasks: 6 executed, 585 up-to-date
D:SIPFUNDSipFundandroidgradlew.bat exited with non-zero code: 1
Error: D:SIPFUNDSipFundandroidgradlew.bat exited with non-zero code: 1
at ChildProcess.completionListener (D:SIPFUNDSipFundnode_modules@expospawn-asyncsrcspawnAsync.ts:65:13)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at ChildProcess.cp.emit (D:SIPFUNDSipFundnode_modulescross-spawnlibenoent.js:34:29)
at maybeClose (node:internal/child_process:1100:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
...
at spawnAsync (D:SIPFUNDSipFundnode_modules@expospawn-asyncsrcspawnAsync.ts:26:19)
at spawnGradleAsync (D:SIPFUNDSipFundnode_modulesexpo-clisrccommandsrunandroidspawnGradleAsync.ts:83:28)
at assembleAsync (D:SIPFUNDSipFundnode_modulesexpo-clisrccommandsrunandroidspawnGradleAsync.ts:57:16)
at actionAsync (D:SIPFUNDSipFundnode_modulesexpo-clisrccommandsrunandroidrunAndroid.ts:145:22)
I am Using JDK 11 node 16
getting this error while trying to run this build.
New contributor
SIBASIS’ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1