Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot compile a signed APK in Android Studio 3.3

After updating to AS 3.3, there seems to be a bug in the "Generate Signed Bundle/APK" dialog. After choosing Bundle or APK format, moving to the next page and setting the module/keystore pass, I can't move by pressing next because I get this popup:

Please specify a destination folder for the signed apk

There is no editbox to specify a destination folder. Anyone else experienced this? I want to know if it's because of the material theme plugin hiding an extra editbox. Otherwise I'll file a bug.

like image 381
usernotnull Avatar asked Oct 17 '22 08:10

usernotnull


1 Answers

UPDATE The latest Android Studio (currently 3.3.1) has fixed the bug.

For Android Studio version < 3.3.1

This seemed to be a bug in AS after upgrading to 3.3. The bug is caused by the hidden checkbox which SHOULDN'T have been evaluated when pressing next if it's invisible (and somehow missed by the Android engineers).

Here's what worked for me:

  1. Regardless if you want APK or bundle, choose Bundle
  2. Even if not required, check the option "Export encrypted key for enrolling published apps"
  3. Choose any file
  4. Press Next (it will work)
  5. Press back twice, choose if APK/Bundle, then in next page, no need for the checkbox "Export (…)" if not required
  6. Build & upvote this answer if it worked to help others
like image 149
usernotnull Avatar answered Oct 21 '22 03:10

usernotnull