100% it will be worked.
Before you create the signed APK you must prepare your project.
- Add Flutter automation dependencies to your pubspec.yaml
dependencies:
flutter:
sdk: flutter
flutter_automation: ^1.1.4
Currently ^1.1.4 is the newest dependency, this will eventually change.
- Get the new dependency
Run flutter packages get in your command prompt in your projects directoy
- Setup the signing
Run flutter pub pub run flutter_automation --android-signin your command prompt.Then you will be asked to input
then you can give below code. it below code work 100%. ( if you want to change. you can do. )
enter key alias:
omor4flutter
enter dname as (CN=popupbits.com, OU=DD, O=Popup Bits Ltd., L=Kathmandu, S=Bagmati, C=NP):
CN=popupbits.com, OU=DD, O=Popup Bits Ltd., L=Kathmandu, S=Bagmati, C=NP
key password:
omor4flutter
keystore password:
omor4flutter
- Generate your signed apk or bundle
Simply run flutter build apk --release or flutter build bundle --release to generate a signed apk/bundle of your app.