doublemark
V2EX  ›  Android

android stuidio 3.3 无法打包 release apk

  •  
  •   doublemark · Feb 18, 2019 · 16790 views
    This topic created in 2818 days ago, the information mentioned may be changed or developed.

    可以正常用 Build-Generate Signed apk 使用密钥证书打包 debug 的 apk,但是无法打包 release,提示 cannot recover key。一顿 Google 之后发现大部分说是库密码正确,别名 key 的密码错误,但是尝试 Create new 来新建证书打包还是提示这个。求教。

    12 replies  •  2019-02-26 11:25:08 +08:00
    cxtrinityy
    cxtrinityy
    Feb 18, 2019
    1
    这个我也碰到过,是 as 的 bug,重新 File->open 项目,不要 open recent 试试
    yukiww233
    yukiww233
    Feb 18, 2019
    2
    一直用 canary 渠道,反正 stable 也一点都不稳定(逃
    doublemark
    doublemark
    OP
    Feb 18, 2019
    3
    @cxtrinityy 试了下,还是包 Cannot recover key,确定了密码都是对的。debug 可以 build 成功。
    doublemark
    doublemark
    OP
    Feb 18, 2019
    4
    @yukiww233 之前还听说有人用 3.3.1 出问题的,看来真有问题。真是坑了。
    lanxiner
    lanxiner
    Feb 18, 2019
    5
    一直用的 gradle 命令打包的。。。
    jinhan13789991
    jinhan13789991
    Feb 18, 2019
    6
    卸载 安装 3.1.2 版本的 AS
    kangjinwen
    kangjinwen
    Feb 18, 2019
    7
    3.3.1 打包时候总会出问题。。我已经回退旧版本了
    YellowLittleDog
    YellowLittleDog
    Feb 18, 2019 via Android
    8
    3.3.1 gradle 命令打包没问题
    NaiveSimpleYoung
    NaiveSimpleYoung
    Feb 18, 2019
    9
    我之前是遇到用 build.gradle 里的配置自动打包不成功,用菜单栏的 Build-->Generate Signed Apk 才行,忘记啥原因了。
    doublemark
    doublemark
    OP
    Feb 18, 2019
    10
    Update:
    也许是 New Key Store 的时候 Country Code 必须填写数字?改成数字就好了。
    xmt328
    xmt328
    Feb 18, 2019
    11
    一般不都用命令行打包么,很少这样每次输密码打包的吧
    txy779
    txy779
    Feb 26, 2019
    12
    碰到同样的问题,参考以下网址,进行 Clean 后再重新打包就正常了.(Rebuild 不行!必须单独 Clean.)
    https://stackoverflow.com/questions/32987530/android-studio-keystore-was-tampered-with-or-password-was-incorrect
    3.3.1 的 BUG!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1847 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 01:32 · PVG 09:32 · LAX 17:32 · JFK 20:32
    ♥ Do have faith in what you're doing.