Ionic上的Pushwoosh cordova插件出错



我刚刚在我的Ionic项目上安装了Pushwoosh cordova插件,现在我无法在我的设备上运行该应用程序进行测试。

以下是的官方文件

如果我跑步:ionic cordova run android --consolelogs --device --livereload

我得到:

:compileDebugJavaWithJavac
/media/ivan/SharedPartition/Trabajo/AnimaEdu/animaedu-mobile/platforms/android/src/com/pushwoosh/plugin/pushnotifications/PushNotifications.java:888: error: lambda expressions are not supported in -source 1.6
mainHandler.post(() -> webView.loadUrl("javascript:"+ url));
^
(use -source 8 or higher to enable lambda expressions)
1 error
FAILED
27 actionable tasks: 1 executed, 26 up-to-date
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.
* Get more help at https://help.gradle.org
BUILD FAILED in 9s
(node:18368) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: /media/ivan/SharedPartition/Trabajo/AnimaEdu/animaedu-mobile/platforms/android/gradlew: Command failed with exit code 1 Error output:
/media/ivan/SharedPartition/Trabajo/AnimaEdu/animaedu-mobile/platforms/android/src/com/pushwoosh/plugin/pushnotifications/PushNotifications.java:888: error: lambda expressions are not supported in -source 1.6
mainHandler.post(() -> webView.loadUrl("javascript:"+ url));
^
(use -source 8 or higher to enable lambda expressions)
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.
* Get more help at https://help.gradle.org
BUILD FAILED in 9s

我不理解输出。

有什么想法吗?提前感谢!

问题很简单:

错误原因-->在-source 1.6 中不支持lambda表达式

您正在使用JDK 1.6,而此插件的代码需要在JDK 1.8或更高版本上编译。

相关内容

  • 没有找到相关文章

最新更新