How to Convert Your Flutter Project to apk
In this article, I will explain step by step how to convert your Flutter project to APK.
Steps to convert Flutter project to APK:
●Step 1: Open the Flutter project and enter the flutter clean
command in the terminal.
●Step 2: Enter the flutter build apk
command in the terminal.
⚠️ Warning: If you encounter the “This application cannot tree shake icons” error, change the build command as follows.
flutter build apk --no-tree-shake-icons
●Step 3: After the ‘build’ process is completed, you can find the generated APK file inside the ‘build\app\outputs\flutter-apk’ directory. After transferring the APK to your device, you can install it directly on the device, or you can enter the following command in the terminal.
adb install <apk file name>
By following these steps, you can convert your Flutter project into an APK.