Skyost / RateMyApp

This plugin allows to kindly ask users to rate your app if custom conditions are met (eg. install time, number of launches, etc...).
https://pub.dev/packages/rate_my_app
MIT License
273 stars 111 forks source link

Error to build: Execution failed for task ':rate_my_app:compileDebugKotlin' #112

Closed lohanbodevan closed 2 years ago

lohanbodevan commented 2 years ago

Describe the bug When trying to build a Flutter app with rate_my_app: ^1.1.1+1 as dependency I get the following error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':rate_my_app:compileDebugKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Additionally, I get some Flutter Fix recommendation in the console:

Your project requires a newer version of the Kotlin Gradle plugin.
Find the latest version on https://kotlinlang.org/docs/gradle.html#plugin-and-versions, then update
/path/to/app/android/build.gradle:
ext.kotlin_version = '<latest-version>'

Flutter version: Flutter 2.10.1 • channel stable • https://github.com/flutter/flutter.git Framework • revision db747aa133 (6 days ago) • 2022-02-09 13:57:35 -0600 Engine • revision ab46186b24 Tools • Dart 2.16.1 • DevTools 2.9.2