Flutter is a framework created by Google. It allows the development of applications running on the 2 main mobile platforms, Android and iOS , from the same code base. When you have started working on your project, the “flutter run” command allows you to launch it to see the rendering. If you get the error message “No connected devices”, then it is a problem related to the connection with the Android SDK.

 

Flutter needs an Android SDK to run your app. To provide it, there are 2 possibilities: use the Android Studio development environment, which provides an Android system emulator, or connect a device using this operating system to the computer.

If you have chosen to use Android Studio, you must first have activated hardware acceleration on your computer. This is the case for most modern computers, but to be sure you should check this setting. It is located in the BIOS settings when the computer starts. After installing Android Studio, launch it and go to the “Tools” menu, “Android” and “AVD Manager”. Then click on the “Create virtual device” button. Choose the definition you want to use and click “Next”. Then select one or more versions of Android, the ones you want to emulate. It is advisable to choose an image of type “x86” or “x86_64”. In the next section, go to the part “hardware acceleration. Then click “Finish” for the emulator to be created. Then return to the virtual device management and click on the “Start” button in the toolbar to launch the emulator. The “flutter run” command will then show your app in the emulator. It is also possible to start the emulator with the application directly from the development screen of Android Studio, thanks to a button indicating the emulator located in the toolbar placed above the code page. Hardware acceleration. Then click “Finish” for the emulator to be created. Then return to the virtual device management and click on the “Start” button in the toolbar to launch the emulator. The “flutter run” command will then show your app in the emulator. It is also possible to start the emulator with the application directly from the development screen of Android Studio, thanks to a button indicating the emulator located in the toolbar placed above the code page. The “flutter run” command will then show your app in the emulator. It is also possible to start the emulator with the application directly from the development screen of Android Studio, thanks to a button indicating the emulator located in the toolbar placed above the code page. The “flutter run” command will then show your app in the emulator. It is also possible to start the emulator with the application directly from the development screen of Android Studio, thanks to a button indicating the emulator located in the toolbar placed above the code page.

 

If you want to use one of your devices integrating the Android system, you must first check that it uses an Android version equal to version 4.1 or more recent. In your device settings, go to Developer Options and enable USB Debugging. Then connect the device to your computer. If prompted, allow the computer to access your device. Then go to the terminal (or the command prompt for Windows) and use the “flutter devices” command to verify that Flutter recognizes your device. The “flutter run” command will allow you to launch your application. Note that by default, Flutter will use the version of Android placed where the ADB tools have been installed.

 


0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *