log2c / cordova-plugin-log2c-aliyun-push

Cordova 阿里云移动推送插件
Apache License 2.0
2 stars 4 forks source link

Could not find method implementation() for arguments [com.android.support:support-compat:27.+] #9

Closed dythbj closed 4 years ago

dythbj commented 4 years ago

您好: Android编译的时候报错:

请教大神如何处理?

log2c commented 4 years ago

您好: Android编译的时候报错:

  • Where: Script '/Users/gaojie/Library/Develop/ionic/SurveySPB/platforms/android/cordova-plugin-log2c-aliyun-push/surveyspb-build-extras.gradle' line: 19

  • What went wrong: A problem occurred evaluating script.

Could not find method implementation() for arguments [com.android.support:support-compat:27.+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

请教大神如何处理?

看样子是项目的 Gradle 版本太低,需要升级

dythbj commented 4 years ago

我把implementation 'com.android.support:support-compat:27.+'改成了compile 'com.android.support:support-compat:27.+',但是现在报AliyunPush.java:83: 错误: -source 1.6 中不支持 lambda 表达式cordova.getThreadPool().execute(() -> {

log2c commented 4 years ago

我把implementation 'com.android.support:support-compat:27.+'改成了compile 'com.android.support:support-compat:27.+',但是现在报AliyunPush.java:83: 错误: -source 1.6 中不支持 lambda 表达式cordova.getThreadPool().execute(() -> {

你Cordova 版本升级到 9 吧,应该就可以了

dythbj commented 4 years ago

我把implementation 'com.android.support:support-compat:27.+'改成了compile 'com.android.support:support-compat:27.+',但是现在报AliyunPush.java:83: 错误: -source 1.6 中不支持 lambda 表达式cordova.getThreadPool().execute(() -> {

你Cordova 版本升级到 9 吧,应该就可以了

好的,谢谢