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/ke
Solution 1:
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:
- Regardless if you want APK or bundle, choose Bundle
- Even if not required, check the option "Export encrypted key for enrolling published apps"
- Choose any file
- Press Next (it will work)
- Press back twice, choose if APK/Bundle, then in next page, no need for the checkbox "Export (…)" if not required
- Build & upvote this answer if it worked to help others
Solution 2:
I had in my build.gradle
classpath 'com.android.tools.build:gradle:3.3.0'
and changed it to
classpath 'com.android.tools.build:gradle:3.3.1'
After that worked like a charm.
Solution 3:
In my case, I've to revert back the gradle dependency to 4.2.0 from 4.2.1
classpath 'com.android.tools.build:gradle:4.2.0'
Solution 4:
What @RJFares said is correct, but in my case, in addition to that I needed to revert version of gradle dependency from 3.3.0 to 3.2.1 in build.gradle
buildscript {
....
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
...
}
}
To have a complete answer in one I'm copying @RJFares's answer
- Regardless if you want APK or bundle, choose Bundle
- Even if not required, check the option "Export encrypted key for enrolling published apps"
- Choose any file
- Press Next (it will work)
- Press back twice, choose if APK/Bundle, then in next page, no need for the checkbox "Export (…)" if not required
- Build & upvote this answer if it worked to help others
Post a Comment for "Cannot Compile A Signed APK In Android Studio 3.3"