Wayaer/fl_umeng

is it possible to downgrade gradle to 5.3.1

Closed this issue · 1 comments

Hi,

I have got this kind of error to use fl_umeng,

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file '/Users/jerryzhou/.pub-cache/hosted/pub.flutter-io.cn/fl_umeng-1.1.9/android/build.gradle' line: 26

* What went wrong:
A problem occurred evaluating project ':fl_umeng'.
> Failed to apply plugin [id 'kotlin-android']
> The current Gradle version 5.3.1 is not compatible with the Kotlin Gradle plugin. Please use Gradle 6.1.1 or newer, or the previous version of the Kotlin plugin.

But after upgrade gradle to 6.1.1, will get error bellow:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':add_2_calendar'.
> Failed to notify project evaluation listener.
> 'org.gradle.api.file.RegularFileProperty org.gradle.api.file.ProjectLayout.fileProperty(org.gradle.api.provider.Provider)'

I was wonder if it possible that fl_umeng downgrade gradle dependency to gradle-5.3.1-all.zip ?

新版已更新gradle 版本,并且修改了使用方式,建议看看文档