Android Studio not showing Logcat with Flutter





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







11















I'm using Android Studio for Flutter App Development. Everything seems to be working fine just that the Android Studio does not show the "logs" in Logcat. In the Logcat section, it says "Please Configure Android SDK". Which is already configured. And in the Logcat section says "No Connected Devices." in the drop-down menu. When it has recognized my Android Phone and is showing it just under the Menu bar.



Is there a fix for it? Is there something I am missing?










share|improve this question

























  • Try to go in the menu and press "Invalidate caches and restart". And make sure to select your Android device after that in Android Studio.

    – Bostrot
    Jun 24 '18 at 8:38











  • Nothing's changed.

    – VoidMain
    Jun 24 '18 at 10:01


















11















I'm using Android Studio for Flutter App Development. Everything seems to be working fine just that the Android Studio does not show the "logs" in Logcat. In the Logcat section, it says "Please Configure Android SDK". Which is already configured. And in the Logcat section says "No Connected Devices." in the drop-down menu. When it has recognized my Android Phone and is showing it just under the Menu bar.



Is there a fix for it? Is there something I am missing?










share|improve this question

























  • Try to go in the menu and press "Invalidate caches and restart". And make sure to select your Android device after that in Android Studio.

    – Bostrot
    Jun 24 '18 at 8:38











  • Nothing's changed.

    – VoidMain
    Jun 24 '18 at 10:01














11












11








11


1






I'm using Android Studio for Flutter App Development. Everything seems to be working fine just that the Android Studio does not show the "logs" in Logcat. In the Logcat section, it says "Please Configure Android SDK". Which is already configured. And in the Logcat section says "No Connected Devices." in the drop-down menu. When it has recognized my Android Phone and is showing it just under the Menu bar.



Is there a fix for it? Is there something I am missing?










share|improve this question
















I'm using Android Studio for Flutter App Development. Everything seems to be working fine just that the Android Studio does not show the "logs" in Logcat. In the Logcat section, it says "Please Configure Android SDK". Which is already configured. And in the Logcat section says "No Connected Devices." in the drop-down menu. When it has recognized my Android Phone and is showing it just under the Menu bar.



Is there a fix for it? Is there something I am missing?







android flutter logcat






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 4 at 4:38









Alireza Noorali

1,565838




1,565838










asked Jun 24 '18 at 7:22









VoidMainVoidMain

8419




8419













  • Try to go in the menu and press "Invalidate caches and restart". And make sure to select your Android device after that in Android Studio.

    – Bostrot
    Jun 24 '18 at 8:38











  • Nothing's changed.

    – VoidMain
    Jun 24 '18 at 10:01



















  • Try to go in the menu and press "Invalidate caches and restart". And make sure to select your Android device after that in Android Studio.

    – Bostrot
    Jun 24 '18 at 8:38











  • Nothing's changed.

    – VoidMain
    Jun 24 '18 at 10:01

















Try to go in the menu and press "Invalidate caches and restart". And make sure to select your Android device after that in Android Studio.

– Bostrot
Jun 24 '18 at 8:38





Try to go in the menu and press "Invalidate caches and restart". And make sure to select your Android device after that in Android Studio.

– Bostrot
Jun 24 '18 at 8:38













Nothing's changed.

– VoidMain
Jun 24 '18 at 10:01





Nothing's changed.

– VoidMain
Jun 24 '18 at 10:01












6 Answers
6






active

oldest

votes


















10














Flutter use Run tab to display logs in Android Studio. Switch from Logcat to Run and then you will see logs.






share|improve this answer

































    3














    Go to Setting/Preferences -> Languages & Framework -> Flutter ->
    Check or uncheck Replace the Run and Debug console with an experimental Flutter Loggin view






    share|improve this answer































      2














      In Flutter apps you can log text using the print() statement.



      pring('hello');


      As others have said, you can use the Run tab in Android Studio to view these logged comments.



      enter image description here



      Here is the code for main.dart:



      import 'package:flutter/material.dart';

      void main() {
      runApp(MaterialApp(
      home: Center(
      child: RaisedButton(
      child: Text('Button'),
      onPressed: () {
      print('hello'); // <-- logging
      },
      ),
      ),
      ));
      }





      share|improve this answer

































        1














        I guess it's an ADB issue. You can restart AS (or maybe even your Computer) or what i usually do is open the terminal an then: adb kill-server && adb start-server (I think the second part adb start-server is not necessary because it seems that AS handles it automatically) - anyways this is how LogCat and Android (and Flutter) work for me every time.






        share|improve this answer































          1














          Switch to the “Run” tab to see the logs and if you want to insert logs (like Log.d() in android), you can use print() function and whatever string you pass into it will be printed into the “Run” window.






          share|improve this answer

































            0














            Flutter has not logcat flutter show error in the console inside Run tab.IF you want to see error and crash report click on run tab.






            share|improve this answer


























              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51007784%2fandroid-studio-not-showing-logcat-with-flutter%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              6 Answers
              6






              active

              oldest

              votes








              6 Answers
              6






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              10














              Flutter use Run tab to display logs in Android Studio. Switch from Logcat to Run and then you will see logs.






              share|improve this answer






























                10














                Flutter use Run tab to display logs in Android Studio. Switch from Logcat to Run and then you will see logs.






                share|improve this answer




























                  10












                  10








                  10







                  Flutter use Run tab to display logs in Android Studio. Switch from Logcat to Run and then you will see logs.






                  share|improve this answer















                  Flutter use Run tab to display logs in Android Studio. Switch from Logcat to Run and then you will see logs.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jan 4 at 2:38









                  Alireza Noorali

                  1,565838




                  1,565838










                  answered Jul 24 '18 at 10:08









                  Daniil YakovlevDaniil Yakovlev

                  68868




                  68868

























                      3














                      Go to Setting/Preferences -> Languages & Framework -> Flutter ->
                      Check or uncheck Replace the Run and Debug console with an experimental Flutter Loggin view






                      share|improve this answer




























                        3














                        Go to Setting/Preferences -> Languages & Framework -> Flutter ->
                        Check or uncheck Replace the Run and Debug console with an experimental Flutter Loggin view






                        share|improve this answer


























                          3












                          3








                          3







                          Go to Setting/Preferences -> Languages & Framework -> Flutter ->
                          Check or uncheck Replace the Run and Debug console with an experimental Flutter Loggin view






                          share|improve this answer













                          Go to Setting/Preferences -> Languages & Framework -> Flutter ->
                          Check or uncheck Replace the Run and Debug console with an experimental Flutter Loggin view







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Dec 19 '18 at 4:02









                          Cuong TruongCuong Truong

                          312




                          312























                              2














                              In Flutter apps you can log text using the print() statement.



                              pring('hello');


                              As others have said, you can use the Run tab in Android Studio to view these logged comments.



                              enter image description here



                              Here is the code for main.dart:



                              import 'package:flutter/material.dart';

                              void main() {
                              runApp(MaterialApp(
                              home: Center(
                              child: RaisedButton(
                              child: Text('Button'),
                              onPressed: () {
                              print('hello'); // <-- logging
                              },
                              ),
                              ),
                              ));
                              }





                              share|improve this answer






























                                2














                                In Flutter apps you can log text using the print() statement.



                                pring('hello');


                                As others have said, you can use the Run tab in Android Studio to view these logged comments.



                                enter image description here



                                Here is the code for main.dart:



                                import 'package:flutter/material.dart';

                                void main() {
                                runApp(MaterialApp(
                                home: Center(
                                child: RaisedButton(
                                child: Text('Button'),
                                onPressed: () {
                                print('hello'); // <-- logging
                                },
                                ),
                                ),
                                ));
                                }





                                share|improve this answer




























                                  2












                                  2








                                  2







                                  In Flutter apps you can log text using the print() statement.



                                  pring('hello');


                                  As others have said, you can use the Run tab in Android Studio to view these logged comments.



                                  enter image description here



                                  Here is the code for main.dart:



                                  import 'package:flutter/material.dart';

                                  void main() {
                                  runApp(MaterialApp(
                                  home: Center(
                                  child: RaisedButton(
                                  child: Text('Button'),
                                  onPressed: () {
                                  print('hello'); // <-- logging
                                  },
                                  ),
                                  ),
                                  ));
                                  }





                                  share|improve this answer















                                  In Flutter apps you can log text using the print() statement.



                                  pring('hello');


                                  As others have said, you can use the Run tab in Android Studio to view these logged comments.



                                  enter image description here



                                  Here is the code for main.dart:



                                  import 'package:flutter/material.dart';

                                  void main() {
                                  runApp(MaterialApp(
                                  home: Center(
                                  child: RaisedButton(
                                  child: Text('Button'),
                                  onPressed: () {
                                  print('hello'); // <-- logging
                                  },
                                  ),
                                  ),
                                  ));
                                  }






                                  share|improve this answer














                                  share|improve this answer



                                  share|improve this answer








                                  edited Jan 3 at 23:05

























                                  answered Jan 3 at 22:50









                                  SuragchSuragch

                                  215k127720787




                                  215k127720787























                                      1














                                      I guess it's an ADB issue. You can restart AS (or maybe even your Computer) or what i usually do is open the terminal an then: adb kill-server && adb start-server (I think the second part adb start-server is not necessary because it seems that AS handles it automatically) - anyways this is how LogCat and Android (and Flutter) work for me every time.






                                      share|improve this answer




























                                        1














                                        I guess it's an ADB issue. You can restart AS (or maybe even your Computer) or what i usually do is open the terminal an then: adb kill-server && adb start-server (I think the second part adb start-server is not necessary because it seems that AS handles it automatically) - anyways this is how LogCat and Android (and Flutter) work for me every time.






                                        share|improve this answer


























                                          1












                                          1








                                          1







                                          I guess it's an ADB issue. You can restart AS (or maybe even your Computer) or what i usually do is open the terminal an then: adb kill-server && adb start-server (I think the second part adb start-server is not necessary because it seems that AS handles it automatically) - anyways this is how LogCat and Android (and Flutter) work for me every time.






                                          share|improve this answer













                                          I guess it's an ADB issue. You can restart AS (or maybe even your Computer) or what i usually do is open the terminal an then: adb kill-server && adb start-server (I think the second part adb start-server is not necessary because it seems that AS handles it automatically) - anyways this is how LogCat and Android (and Flutter) work for me every time.







                                          share|improve this answer












                                          share|improve this answer



                                          share|improve this answer










                                          answered Aug 7 '18 at 14:12









                                          Leonard ArnoldLeonard Arnold

                                          1717




                                          1717























                                              1














                                              Switch to the “Run” tab to see the logs and if you want to insert logs (like Log.d() in android), you can use print() function and whatever string you pass into it will be printed into the “Run” window.






                                              share|improve this answer






























                                                1














                                                Switch to the “Run” tab to see the logs and if you want to insert logs (like Log.d() in android), you can use print() function and whatever string you pass into it will be printed into the “Run” window.






                                                share|improve this answer




























                                                  1












                                                  1








                                                  1







                                                  Switch to the “Run” tab to see the logs and if you want to insert logs (like Log.d() in android), you can use print() function and whatever string you pass into it will be printed into the “Run” window.






                                                  share|improve this answer















                                                  Switch to the “Run” tab to see the logs and if you want to insert logs (like Log.d() in android), you can use print() function and whatever string you pass into it will be printed into the “Run” window.







                                                  share|improve this answer














                                                  share|improve this answer



                                                  share|improve this answer








                                                  edited Jan 4 at 4:33









                                                  Alireza Noorali

                                                  1,565838




                                                  1,565838










                                                  answered Aug 7 '18 at 16:32









                                                  Jaswant SinghJaswant Singh

                                                  1,3191521




                                                  1,3191521























                                                      0














                                                      Flutter has not logcat flutter show error in the console inside Run tab.IF you want to see error and crash report click on run tab.






                                                      share|improve this answer






























                                                        0














                                                        Flutter has not logcat flutter show error in the console inside Run tab.IF you want to see error and crash report click on run tab.






                                                        share|improve this answer




























                                                          0












                                                          0








                                                          0







                                                          Flutter has not logcat flutter show error in the console inside Run tab.IF you want to see error and crash report click on run tab.






                                                          share|improve this answer















                                                          Flutter has not logcat flutter show error in the console inside Run tab.IF you want to see error and crash report click on run tab.







                                                          share|improve this answer














                                                          share|improve this answer



                                                          share|improve this answer








                                                          edited Jan 4 at 2:38









                                                          Alireza Noorali

                                                          1,565838




                                                          1,565838










                                                          answered Aug 2 '18 at 9:51









                                                          SamSam

                                                          61




                                                          61






























                                                              draft saved

                                                              draft discarded




















































                                                              Thanks for contributing an answer to Stack Overflow!


                                                              • Please be sure to answer the question. Provide details and share your research!

                                                              But avoid



                                                              • Asking for help, clarification, or responding to other answers.

                                                              • Making statements based on opinion; back them up with references or personal experience.


                                                              To learn more, see our tips on writing great answers.




                                                              draft saved


                                                              draft discarded














                                                              StackExchange.ready(
                                                              function () {
                                                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51007784%2fandroid-studio-not-showing-logcat-with-flutter%23new-answer', 'question_page');
                                                              }
                                                              );

                                                              Post as a guest















                                                              Required, but never shown





















































                                                              Required, but never shown














                                                              Required, but never shown












                                                              Required, but never shown







                                                              Required, but never shown

































                                                              Required, but never shown














                                                              Required, but never shown












                                                              Required, but never shown







                                                              Required, but never shown







                                                              Popular posts from this blog

                                                              Mossoró

                                                              Error while reading .h5 file using the rhdf5 package in R

                                                              Pushsharp Apns notification error: 'InvalidToken'