Flutter Tutorial - How To Run App On Real Device & Screen Mirroring Flutter App | 5 Minutes

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
how to run your flutter app on a real physical device and also learn how to mirror your phone to your computer screen to run your flutter app on a physical device first of all go to your settings here we need to scroll all the way down to go to the developer options and by default they are not activated because they are only meant for app developers therefore go here to about phone and then you might see here a build number entry or you also need to go to software information and here click seven times quickly on this build number and with this the developer options should be activated therefore simply go here twice back to the developer options and then you can click on them within the developer options you need to do two things first of all make sure that the developer options are turned on and secondly scroll here all the way down until you come to the debugging section and make sure that the usb debugging is turned on and then click ok to allow the debugging next you need to connect your phone via usb to your computer after you have connected your real device to your computer you should see a prompt simply click on ok to authorize your computer to access your device now that our real physical device is set up and connected to our computer we can go to our command line or terminal and here we write then the command flutter doctor make sure that your flutter doctor doesn't show here any warnings or errors because otherwise flutter might not detect and locate your physical device next you can go into your ide and then you should be able to choose your real device after you have selected your real physical device you can click on the run symbol to run your flutter app on your physical device and in general running a flutter app on a real device is fast since it doesn't slow your computer down on the other hand using an emulator or simulator would slow your computer down and now it should have launched your app on your real device let's also look at three common issues that you might face with a real device first of all if you face a problem that your device is not found and you cannot select it within your ide then simply go to your command line or terminal and type the command flutter devices here you can verify that flutter recognizes your connected device and also make sure that your device is authorized if your device is not displayed within the command line then make sure that you have the latest usb drivers installed and another solution might be to go to your phone settings and then disable the usb debugging and turn it on again next while running the command flutter doctor another common issue is that the android sdk is not configured which is needed for flutter to locate your device to fix this go to your android studio and then go to the settings and here inside you need to type in then android sdk next copy here then this android sdk location next go back to your command line or terminal and here you write then this command flutter config and then you can define here the path to your android sdk therefore add here a space after it and paste in this path which we have copied before here inside and then click enter and another common issue is that the android licenses are not accepted simply run flutter doctor android licenses and then press y and press enter to accept the terms and lastly and most importantly if you also want to mirror your real device to your computer screen then you need to simply go to this url which is a free screen monitoring application and this is what you can install on windows linux and mac os simply scroll here a bit down until you come to this summary section so you can install the software for your platform by running these commands on mac os and linux in your terminal or command line and for windows you only need to download here this file and now every time before you mirror your real device to your computer screen make sure that your real device is connected via usb to your computer on mac os and linux you can simply run then this command after you have installed this tool and now if you press enter then it will launch your mirrored physical device on your computer screen and of course you can also click here then on the screen to also interact with this device from your computer on windows you only need to open this executable file that you have downloaded and this will then launch your mirrored physical device on your computer screen if you liked this video make sure to subscribe to my youtube channel you
Info
Channel: HeyFlutter․com
Views: 176,880
Rating: undefined out of 5
Keywords: android, android app, android device, android for beginners, android os, android programming, android studio, android tutorial, basic android, computers, flutter, flutter app, flutter mirror phone, flutter mirror real device, flutter run app on real device, flutter tutorial, flutter tutorial for beginners, flutter unable to locate device, google, ios app, mobile app, programming, run flutter app on real device
Id: aohkII1C4JY
Channel Id: undefined
Length: 4min 56sec (296 seconds)
Published: Sun Jun 06 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.