Closed Yuripetusko closed 5 years ago
Hi, @Yuripetusko. Please, try upgrading to the latest version of Cordova-android 8.0.0.
Hi @Yuripetusko. Unfortunately, this isn't something we can fix in our SDK. In the plugin, we only specify the lowest supported version of cordova-android. Supported Java version depends on it. But still, even in cordova-android 6.4.0, you should have JDK 1.8 installed, please refer to the cordova-android 6.4 documentation. I'm closing this issue for now, but feel free to re-open it if you have any more questions or need any help!
Description
Looks like Cordova has Java 1.6 by default so diamond operator is not supported ,I can perhaps modify gradle to use Java 1.8 but not sure how this will affect other plugins, better would be to fix the issue in this plugin
CenterSharedPlugin.java:40: error: diamond operator is not supported in -source 1.6
final DefaultAppCenterFuture<Void> future = new DefaultAppCenterFuture<>();
Repro Steps
Please list the steps used to reproduce your issue.
cordova plugin add
cordova run android
Details