I'm trying to stop debbuger from running and I cannot figure out how. I've read everything here and still nothing. I made a weather app in flutter and I am ready to upload it to google play but I get the error that tells me I need to stop debbuging. Anyone know how to? Notice the debug banner on top right
Asked
Active
Viewed 196 times
0

Fagner Schuindt Caetano
- 173
- 2
- 2
- 11
-
What do you mean by "Cannot stop the debugger from running" ? – Rémi Rousselet Apr 25 '18 at 14:24
-
1Most likely a duplicate of https://stackoverflow.com/questions/48893935/how-to-remove-slow-mode-banner-in-flutter-on-android-emulator/48893964#48893964 – Rémi Rousselet Apr 25 '18 at 14:25
-
I've tried that. It did not work. This is the error I get when uploading to Google Play Console: You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play. – Fagner Schuindt Caetano Apr 25 '18 at 14:42
2 Answers
2
You need to build a release version, using flutter build apk --release
.

Rémi Rousselet
- 256,336
- 79
- 519
- 432
0
On your MaterialApp set debugShowCheckedModeBanner to false.
MaterialApp(
debugShowCheckedModeBanner: false,
)
The debug banner will also automatically be removed on release build.
If you are using emulator or real device and you want to check it on release mode then =>
flutter run release --apk
run this command on terminal Android Studio / Vs Code

Awais Rehman
- 574
- 3
- 10