V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
doublemark
V2EX  ›  Android

android stuidio 3.3 无法打包 release apk

  •  
  •   doublemark · Feb 18, 2019 · 15954 views
    This topic created in 2636 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
        1
    cxtrinityy  
       Feb 18, 2019
    这个我也碰到过,是 as 的 bug,重新 File->open 项目,不要 open recent 试试
    yukiww233
        2
    yukiww233  
       Feb 18, 2019
    一直用 canary 渠道,反正 stable 也一点都不稳定(逃
    doublemark
        3
    doublemark  
    OP
       Feb 18, 2019
    @cxtrinityy 试了下,还是包 Cannot recover key,确定了密码都是对的。debug 可以 build 成功。
    doublemark
        4
    doublemark  
    OP
       Feb 18, 2019
    @yukiww233 之前还听说有人用 3.3.1 出问题的,看来真有问题。真是坑了。
    lanxiner
        5
    lanxiner  
       Feb 18, 2019
    一直用的 gradle 命令打包的。。。
    jinhan13789991
        6
    jinhan13789991  
       Feb 18, 2019
    卸载 安装 3.1.2 版本的 AS
    kangjinwen
        7
    kangjinwen  
       Feb 18, 2019
    3.3.1 打包时候总会出问题。。我已经回退旧版本了
    YellowLittleDog
        8
    YellowLittleDog  
       Feb 18, 2019 via Android
    3.3.1 gradle 命令打包没问题
    NaiveSimpleYoung
        9
    NaiveSimpleYoung  
       Feb 18, 2019
    我之前是遇到用 build.gradle 里的配置自动打包不成功,用菜单栏的 Build-->Generate Signed Apk 才行,忘记啥原因了。
    doublemark
        10
    doublemark  
    OP
       Feb 18, 2019
    Update:
    也许是 New Key Store 的时候 Country Code 必须填写数字?改成数字就好了。
    xmt328
        11
    xmt328  
       Feb 18, 2019
    一般不都用命令行打包么,很少这样每次输密码打包的吧
    txy779
        12
    txy779  
       Feb 26, 2019
    碰到同样的问题,参考以下网址,进行 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   ·   Solana   ·   5039 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 83ms · UTC 05:38 · PVG 13:38 · LAX 22:38 · JFK 01:38
    ♥ Do have faith in what you're doing.