【发布时间】:2018-07-23 17:37:55
【问题描述】:
我刚刚在我的 Ionic 项目上安装了Pushwoosh cordova plugin,现在我无法在我的设备上运行该应用进行测试。
这里是官方docs
如果我运行:
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
我不明白输出。
有什么想法吗?提前致谢!
【问题讨论】:
标签: android cordova ionic-framework ionic3 pushwoosh