* I paraphrased the post since it was originally published *
When I try to launch the newly released apk, I get the error message "apk for the option you selected ... not signed." This is in the "Edit Configuration" pop-up menu. Here are my steps:
- On the Build Options tab, select release
- From the menu, select Build → Generate Signed APK
- Fill in the fields for the keystore and password storage in the drop-down list.
- In the second panel, change the destination folder to ... \ app \ build \ output \ apk (see note * below)
- Observe the notification in the upper right corner of the studio: APKs generated successfully.
- From the menu, select Run → Run Application.
- I get an “Edit Configuration” pop-up with an Apk error for the option you selected ... not signed.
So why this error? The generated APK appears to be valid. I successfully posted it on the Android Store (for alpha testing only) and verified that the stack dumps are messy.
What I cannot do is download it (step 6 above) to my device. I think this is normal, since I can download the debug version just fine.
(*) Android Studio by default displays a higher, supposedly more convenient directory for apk release. However, it’s more difficult for me to control the consistency of the generated files when they are scattered, so I prefer all the generated apks in one place.
android studio release
Peri hartman
source share