Open sunilk44 opened 5 years ago
You have to build the app with Java 8 (1.8)
I face the same issue and I already have Java 1.8. Is there any way to force to compile this part with java 1.8??
@mbilbao I did that in Android Studio, setting 1.8 as both target and source compatibility.
Yes, I did the same, but somehow it managed to keep compiling that part in 1.7
Do a cordova clean and rebuild
Also, look at your grade files, maybe you have some reference to 1.7 still there
Any solution to this?
i am also having same error how to solve it any tips ?
We have thousand devices which target API 17, what release version that support API 17?
After installing the plugin build failed due to (use -source 8 or higher to enable lambda expressions) ../platforms/android/src/de/appplant/cordova/plugin/background/BackgroundModeExt.java:168: error: lambda expressions are not supported in -source 1.6
(use -source 8 or higher to enable lambda expressions)
../platforms/android/src/de/appplant/cordova/plugin/background/BackgroundModeExt.java:257: error: method references are not supported in -source 1.6
(use -source 8 or higher to enable method references)
../platforms/android/src/de/appplant/cordova/plugin/background/BackgroundMode.java:295: error: lambda expressions are not supported in -source 1.6
(use -source 8 or higher to enable lambda expressions) can you suggest me solution for resolveing this issue.