Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter gives "FlutterFirebaseAnalyticsPlugin.java uses unchecked or unsafe operations" error when I try to run without debugging

When I try running my app without debugging. The app gives me the following error and proceeds with the installation(I'm using my phone via USB Debugging to test my app).

Launching lib\main.dart on vivo 1901 in debug mode...
Note: C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_analytics-9.1.10\android\src\main\java\io\flutter\plugins\firebase\analytics\FlutterFirebaseAnalyticsPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

√  Built build\app\outputs\flutter-apk\app-debug.apk.

And when I enter my registered details(I have already created an account on my app) on the login page and click login , it gives me an authentication error.

like image 773
Ruben Avatar asked Feb 12 '26 06:02

Ruben


1 Answers

The error is caused due to outdated packages in your flutter project. To solve the errors, do the following :

Step 1: Run the command flutter pub outdated in the terminal of your development environment. This command will find and display the list of packages that can be updated.

Step 2: Run the command flutter pub upgrade in the terminal of your development environment. This command will update the outdated packages.

like image 82
Ruben Avatar answered Feb 14 '26 18:02

Ruben