Closed flowolf closed 8 months ago
Hey @flowolf
I've been able to do the build successfully. I had the same problem as you have and mainly what you need to do is these two steps:
Run the following command to create a valid key to be able to generate the release build.
keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload-keystore
Then, inside the project, in the android
folder, create a file named key.properties
and put this inside but please replace the placeholder values with your actual values:
storePassword=<password-from-previous-step>
keyPassword=<password-from-previous-step>
keyAlias=upload-keystore
storeFile=<keystore-file-location>
Then run again flutter build apk
and you should be good to go 🙂
For further information, you can check this page: https://docs.flutter.dev/deployment/android#create-an-upload-keystore
@thardev thank you! that worked!
I set:
storePassword=<password-from-previous-step>
keyPassword=<password-from-previous-step>
keyAlias=upload-keystore
storeFile=/Users/myuser/path/to/upload-keystore.jks
resolved
Tried to build the project, but got errors. I'm new to flutter and don't know where to start...
I tried to build from branch
dev_v3
.this is what I did:
I did not start the project in Android Studio. is this needed?
thanks for help