Search code examples
androidfluttervisual-studio-codeapk

How do I deploy flutter app on mobile device for testing without using play store


I am new to flutter development. I have created a sample app (flutter 2.2 and VS Code) that uses google maps and device location tracking. I want to test this on field by deploying on to my mobile. Can I know the steps to achieve this with out publishing the app to play store.


Solution

  • create apk for your app and try below commands

    clean your project

    flutter clean

    get packages

    flutter pub get

    build your apk

    flutter build apk --release

    find your apk in your machine

    your project name\build\app\outputs\flutter-apk(on release mode)

    copy this APK and install your mobile divice

    refer this video