ponnamkarthik / FlutterToast

Toast Plugin for Flutter
MIT License
1.44k stars 354 forks source link

fluttertoast:compileDebugJavaWithJavac #521

Open AgMarwanAg opened 1 month ago

AgMarwanAg commented 1 month ago

when I try to run flutter app after adding fluttertoast: ^8.2.6 to my app I get this error when I try to run the app on android

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':fluttertoast:compileDebugJavaWithJavac'.
> Cannot query the value of this provider because it has no value available.

* 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

I tried using different versions of the library , I also tried different flutter versions and still have the same issue

jerrydix commented 3 weeks ago

I have the same issue

jerrydix commented 3 weeks ago

Fixed the issue by upgrading to the following versions: plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" id "com.android.application" version "8.5.2" apply false id "org.jetbrains.kotlin.android" version "1.9.23" apply false } and API level 35 and latest version of the Fluttertoast package